Filer taxonomy posts by current category

Use a taxonomy.php template?! taxonomy.php <?php get_header(); ?> <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); ?> <h1><?php echo $term->name; ?></h1> <?php global $query_string; query_posts( $query_string . ‘&orderby=title&order=asc’ ); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h1><a href=”https://wordpress.stackexchange.com/questions/72934/<?php echo get_permalink(); ?>” title=”<?php the_title(); ?>” rel=”bookmark”><?php the_title(); ?></a></h1> <?php … Read more

Category callback box problem

Yes there is such possibility. Just change your code to this: $main_category_name = YOUR MAIN CATEGORY NAME; // get the main category of this section (i.e nadchodzące) foreach( ( get_the_category() ) as $category ) { if ( $category->cat_name != $main_category_name ) { $category_name = $category->cat_name; $category_url = get_category_link($category); $cat_com_url = get_comments_link(); } <span class=”cb-category”><a href=”https://wordpress.stackexchange.com/questions/106337/<?php … Read more

Delete a category

I took a look at your homepage, and I see what you mean. It looks like a widget is being used to generate that output, so take a look under Appearance > Widgets, and see if there is a widget area for the homepage used to generate the Music Reviews entry.

echo $category[0]-> cat_name; shows only one category name

In your code: $category = get_the_category(); echo $category[0]-> cat_name; get_the_category() returns and array of WP_Term objects. You are getting the first one from the array, and echoing only that one category name. I’d recommend using get_the_category_list() instead. $categories_list = get_the_category_list( esc_html__( ‘, ‘, ‘html5blank’ ) ); if ( $categories_list ) { echo ‘<li><p class=”meta-txt”>’, esc_html__( … Read more