Search only for posts with specific metadata?

Quick question…which case applies? If you just need a query for today’s date being between two pieces of metadata, I’d create a widget running a fairly straight forward WP_Query and outputting the posts. If you are asking for the user to input a date to search, I’d probably still use a widget but would use … Read more

Please I want to prefix my WP posts title according to each category

You have already mentioned the function wp_title(). Right before outputting the title, it passes its value through the filter wp_title, which can be used here to prepend with additional information. add_filter(‘wp_title’, ‘WPSE_20181106_prepend_title’, 10, 3); function WPSE_20181106_prepend_title($title, $sep, $seplocation) { // not a single post if (!is_singular(‘post’)) { return $title; } // IDs of categories that … Read more

post and page and custom post type

There are many ways of achieving the same or similar outcomes when it comes to WordPress. It is difficult to answer Question:3 without a full overview or gaining more detail into your project. You are correct in your assumptions for question 1 and 2 for the purposes of this context. I’m sure there are many … Read more