Sunday, 30 April 2017

Adding navigation menu support to WordPress theme

While you are creating a custom WordPress theme you will that "Menus" will be dis-appear from the "Appearance" menu in dashboard of your "WordPress". It is because your theme does not have the support for WordPress menus module.

For adding this support you have add a few lines of code in your "functions.php" to call the "register_nav_menus" function, like so:

Can also check if the function exists if you desire. But if it's only for use on your own theme and you know it exists it's not really needed.


Wednesday, 26 April 2017

How to add featured image on third level of navigation?

Hello Guyz,

May, there are times when you need to show featured image in navigation of WordPress website. Here, we are sharing code for same. It, will help you to retrieve featured images for the third level of your menu. You, can make it further also or backward by doing minor tweaks in code.

If you face any issue or find it useful please comment.

Thank You,

Tuesday, 4 April 2017

Get popular tags of a category....

Put this function in functions.php of your active theme. You, can call the tags on category archive page, using shortcode [popular_post_tags] in editor or in case you want to call it using php use do_shortcode like echo do_shortcode('[popular_post_tags]');.

Please, do comment your suggestions and reviews. Thank You!