Word Press Snippets categorised as functions.php


Change The Color Of Wordpress Admin Dashboard Icon In The Menu

How to change Dash icon color in WordPress admin menu with CSS?

Change the default color for dash icon in the admin menu Probably you have this question when you create a Custom WordPress Theme …

Get current category children

Get current category (taxonomy) children and prepare them for options element.

Today I will share something that I use often. Getting the children of the current queried category or taxonomy and making from them …

get_the_content with all HTML tags inside functions.php

How to get_the_content with proper formating inside functions.php?

To get the post or page content inside WordPress functions.php with all the HTML tags you need to use the_content filter. This method …

Warning: count(): Parameter must be an array or an object that implements Countable

How to Fix PHP 7.2 “Warning: count()” on get_the_content() or the_content() in WordPress

Looking to fix this “Warning: count(): Parameter must be an array or an object that implements Countable in /wp-includes/post-template.php on line 284” or …

How to disable wp_emojicons in your website.

How to disable wp_emojicons in your functions.php

Emojis are little icons used to express ideas or emotions Don’t forget to back-up your functions.php before implementing these codes. WordPress automatically loads the file wp-emoji-release.min.js on the front-end …