Add Unlimited Custom Sidebars

More themes nowadays give site owners the ability to add their own unlimited sidebars. So the site owner can create as many sidebars as they want and assign a specific sidebar to a specific page. In this tutorial I’ll go through with you the while process to get this feature done. Please note that this post … Continue reading “Add Unlimited Custom Sidebars”

How to fix “pagination not working” in custom query

By default, in any given context, WordPress uses the main query to determine pagination. The main query object is stored in the $wp_query global, which is also used to output the main query loop. Pagination template tags, including previous_posts_link(), next_posts_link(), posts_nav_link(), and paginate_links(), base their output on the main query object, $wp_query. That main query … Continue reading “How to fix “pagination not working” in custom query”

Add Custom Post States to WordPress posts and pages

You may find that in the post list tables there are some posts/pages title followed by certain conditions. For example, scheduled posts, draft posts and so on they are all flagged with corresponding states. This also applies to pages. On a recent project, I’d like to add a custom state to all pages if they … Continue reading “Add Custom Post States to WordPress posts and pages”

Add a Like button to category/tag/taxonomy pages

In en earlier post I’ve showed you how we can add a like it button to a post/page without a plugin. How to add a like button without a plugin I’ve got a message asking how to also add this kind of button to a category/tag page. As we have stored the likes data as … Continue reading “Add a Like button to category/tag/taxonomy pages”

How to display post and page ID in WordPress admin

Back to the old WordPress 2.5, the post ID was displayed in WordPress admin. Afterwards, this feature was removed. I didn’t check why but now and then I feel it necessary to get the post ID easily. An easy way is to visit the edit page of a post and check the URL. It looks … Continue reading “How to display post and page ID in WordPress admin”