2 votes
Accepted

How to check if the post exists in any of the categories?

Since you are doing this for a custom taxonomy (solution_cats), then you should instead use has_term() and not in_category() which works only with the default/core category taxonomy. So try this with ...
Sally CJ's user avatar
  • 38.7k
1 vote

Categories Not Showing in breadcrumbs in posts

Default Wordpress doesn't have any breadcrumbs. My guess is that your breadcrumbs are added by the plugin Rank Math (which seems to be installed on your site). So just go to the settings for your ...
Audun Myhra Bergwitz's user avatar
1 vote

How to sort custom post's category by id from the theme's function.php?

In your wp_dropdown_categories function call, you are using 'orderby' => 'NAME'. This argument is case-sensitive, and it should be 'orderby' => 'name' (all lowercase). $args = array( 'class' ...
vijay pancholi's user avatar
1 vote

How to get parent and child sub category (Taxonomy) order to display

To display a list of categories with their child categories following the parent categories, you can use WordPress's get_categories() function to fetch the categories and their child categories. ...
vijay pancholi's user avatar
1 vote
Accepted

Show category only if post type is post_three

you can modify your get_categories function call to include the tax_query parameter to specify the taxonomy and terms you want to retrieve. I have added the taxonomy parameter to specify that we are ...
vijay pancholi's user avatar
1 vote

Show category only if post type is post_three

Try this <?php // Get the current post ID $current_post_id = get_the_ID(); // Get the post type of the current post $current_post_type = get_post_type($current_post_id); ...
Zeshan's user avatar
  • 146
1 vote
Accepted

Custom post type category pages pagination returns 404

The issue I'm having is with the pagination on category pages, e.g. /release-notes/category/upgrades/, where pages 2 and beyond return a 404. That's because your custom rewrite rule does not support ...
Sally CJ's user avatar
  • 38.7k
1 vote
Accepted

Is there a standard "Archive" block that shows ALL posts from a specified category?

All the items under your "What I want" list can be easily achieved using the Posts List block which is a variation of the Query Loop block, and if you want to, you can create your very own ...
Sally CJ's user avatar
  • 38.7k

Only top scored, non community-wiki answers of a minimum length are eligible