When you order custom post types or regular posts by title, WordPress sees them as alphabetical characters and treat them accordingly, but when we want to have a top 10 list, the number 10 will follow 1.
Have you ever tried in Wordpress, to list only the sub pages of the current parent page and hide the sub pages of the other parent pages?
I had few people asking me how I realized toggling the subpage navigation links in following website.
If you notice, the other parent sub pages are hidden. If you go instead on other subpage, it will hide the others and show up the sub-pages of the current page.
If / else statements are programming language logic and is something that will help us create better Wordpress custom themes.
A client of mine, wanted to improve his Wordpress site and decided he wants to display different sidebar information depending on the page or section the visitor is.
For example, he wanted to have blog related links as: latest posts, categories and tags, being displayed only on blog section (blog index, categories view, single post view etc). On products/services page and its sub-pages, he decided he wants to have displayed the sub-pages of that section and other interesting links. The rest of the pages, should have only the interesting links section or generic information.
The website speed and responsiveness are very important factors and this aspects should not be neglected if you want to have happy visitors.
I have came across couple methods to display menu pages items in Wordpress including static one recommended by Wordpress, but none of it was suited for my clients needs, since you had to hack the code each time you added a new page. The method I will show you is absolute dynamic and your client or you, can display pages, subpages and highlight them dynamically.
Have you ever tried to show the title of a grandparent page, while you are on a subpage? Your search has ended because I am willing to share this information with you.
This is great for those who want to have a sidebar navigation with grandchildren pages (1+ subpages) and want to have all the time the grandparent page show up.
The Wordpress just alone cannot be used as a full content management system but with some good plugins, can be extended to some unimaginable functionalities. Here I want to present some of the plugins, that everybody should have for a specific situation.