• Resolved rayshman

    (@rayshman)


    Hello
    How can all names be displayed but empty names have no links?
    For example, I have a taxonomy called Brand, which has a number of semesters, called Police, Dior, etc.
    Now the product is inside Dior but not inside the police
    Now the Dior link is displayed but not the police link
    Display the names of both
    I apologize for the type of writing

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rayshman

    (@rayshman)

    with this code
    line 49 in a-z-listing.php

    while ( $a_z_query->have_items() ) :
    $a_z_query->the_item();
    	if ( $a_z_query->get_the_item_post_count() == 0 ){ ?>
    		<li>
    			<?php $a_z_query->the_title(); ?>
    		</li>
    	<?php  }else{   ?>
    	<li>                                
    		<a href="<?php $a_z_query->the_permalink(); ?>">
    			<?php $a_z_query->the_title(); ?>
    		</a>
    	</li>
    <?php } endwhile; ?>
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi, @rayshman ,

    Sorry I didn’t get to you before you found a fix yourself. I’m glad you found the right code to get it working – I would have advised a similar (probably identical) solution, so you’ve done well ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete some links and keep title’ is closed to new replies.