Month: April 2020

Fetch wordpress categories.

Now Days WordPress is a popular blogging platform which have many inbuilt functions.For fetching wordpress categories, wordpress provide lots of inbuilt functions like get_categories(), wp_list_categories(), wp_dropdown_categories(). A. get_categories() Using This function we can fetch wordpress categories. Fetching categories in string format. <?php get_categories(style=list&hide_empty=1); ?> Fetching categories in object format. <?php $options = array(‘style’ => ‘list’,’hide_empty’ …

Fetch wordpress categories. Read More »

Remove wordpress menu and logo from admin panel.

Using this Simple Hook We can easily remove wordpress logo and related sub menus to wordpress logo from admin panel bar of WordPress,You Just need to do is just copy this hook and paste below code on the function.php file of your theme. Before: add_action(‘admin_bar_menu’, ‘remove_wordpress_logo’, 999); function remove_wordpress_logo( $admin_bar ) { $admin_bar->remove_node(‘wp-logo’); } After: …

Remove wordpress menu and logo from admin panel. Read More »

Scroll to Top

Contact information