• Resolved gordonlangley

    (@gordonlangley)


    Hello

    I’ve managed to make categories disappear from my metadata using some CSS, I’m just showing Tags and dates. How can I remove the commas and the word ‘and’ from the category list?

    I have made you a screengrab to illustrate my issue

    screengrab

    Here’s my template code:

    <div<?php if (!has_post_thumbnail()) { ?> class="no-img"<?php } ?>>
       <?php if ( has_post_thumbnail() ) ?>
    
    <a class="normal-thumbs" href="<?php the_permalink(); ?>"<?php the_post_thumbnail(array(100,100)); ?><?php the_post_thumbnail(); ?></a>
    
    <p class="entry-meta"><?php the_taxonomies (array ('template' => '% %l')); ?><?php the_time(" F d, Y"); ?></p>
       <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    
       <?php the_excerpt(); ?>
    </div>

    It would be even better if I could just call the tags rather than all the taxonomies because I don’t want to display the categories in the metadata.

    Thanks!!

    https://www.ads-software.com/plugins/easy-query/

Viewing 1 replies (of 1 total)
  • Thread Starter gordonlangley

    (@gordonlangley)

    Actually – I think I fixed it, by changing the the_taxonomies to the_tags

    <div<?php if (!has_post_thumbnail()) { ?> class="no-img"<?php } ?>>
       <?php if ( has_post_thumbnail() ) ?>
    
    <a class="normal-thumbs" href="<?php the_permalink(); ?>"<?php the_post_thumbnail(array(100,100)); ?><?php the_post_thumbnail(); ?></a>
    
    <p class="entry-meta"><?php the_tags( '' ) ;?><?php the_time(" F d, Y"); ?></p>
       <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    
       <?php the_excerpt(); ?>
    </div>
Viewing 1 replies (of 1 total)
  • The topic ‘Remove seperator punctuation from category lists’ is closed to new replies.