WordPress WP_Query: Get Posts by Meta Values

As you know all the posts have the metadata you can fill in “Custom fields” metabox (it can also be hidden). So, for example, if you want to get a post with meta key show_in_slider and meta value true, you can do it in the following way: Otherwise, if you need to query all posts […]

Get Popular Posts by Views in WordPress

In the past we have shown you how to get popular post in WordPress. In this article, we will show you how to track and display popular posts by views in WordPress without using any plugins. First thing we need to do is create a function that will detect post views count and store it […]

Get Related Post In WordPress

If you want to show related post then there are two methods of doing so and you can choose whichever method you prefer. One way is doing it without a plugin and then there is another method that is doing it with a plugin. Display Related Posts in WordPress with WP_query() Open your theme function […]