New answers tagged

1 vote

sub-category showing up in wrong order in breadcrumbs

As you said, you've a category (parent one) named as Oregon and its sub-category 'Southern', therefore, Oregon / Southern is the correct output. It seems others are in wrong order. If Oregon is parent ...
  • 26
1 vote

Check if a post is in any child category of a parent category

Update for using custom taxonomies: /** * Tests if any of a post's assigned categories are descendants of target categories * * @param int|array $cats The target categories. Integer ID or array of ...
  • 133
2 votes

Show some texts in posts belonging to Specific category

It seems you are pointing to this div class "repair-tool". Correct? If yes then you can modify your code like the below: <?php if( in_category( 1234, $post->ID ) ){ echo '<div ...
1 vote

Removing all Category pages with one exception

You can just change the if (is_category()){ line: // Remove category archives add_action('template_redirect', 'jltwp_adminify_remove_archives_category'); function ...
  • 8,988

Top 50 recent answers are included