Free Business Consulting

How to show current page’s subpages in sidebar?

adminWordpress1 Comments

This question is most searched question in google. It is being used highly in wordpress to list the subpage’s of current page in the sidebar.

We have made it simple for you. Its very easy. Just write down the below code in the sidebar.

Show Subpages menu if it exists in sidebar, and in subpages show parent page’s title.if menu is not there it should not show anythig.

This code will show subpages when either parent page or sub page is active.

You can also customize code more as per your requirement by passing the different arguments($args).

Leave a Reply

Your email address will not be published. Required fields are marked *

Get News In Your Inbox

Popular Blogs

How to create callback functions for jQuery plugins & extensions?

Most of the time custom jQuery plugins and extensions that we create do not use callback functions. They usually simply work on DOM elements or do some calculations. But there…

Continue Reading
Top 5 Best Ecommerce plugins in WordPress

Nowadays online shopping has increased and become very convenient shopping place for users, you may be wanting to start your own online shop so you can unleash your products to…

Continue Reading
10 Best WordPress Live Chat Plugins for Customer Support

The Live chat is the common thing now days, if you own any eCommerce website or if you are the service provider. It makes easy for your customers to contact…

Continue Reading
Free plagiarism checker sites

Plagiarism is the process of taking someone’s ideas & work and passing them off as one’s own. Prevent Plagiarism to check originality of content is the most important factor for…

Continue Reading
How to show wordpress posts in other CMS?

Currently since from few weeks, I am working on Expression Engine. Now you thought that what is Expression Engine. Now let me explain you in little brief. Expression Engine is…

Continue Reading

Remarkable Facts About Us

0 %
Client satisfaction
0 +
Years of Experience
0 +
Happy Clients
Projects Accomplished

Ready to Get Started ?