Removing Permalink on blog title on single post only (2 posts)

  1. Icithis
    Posted 6 years ago #

    I'd like to remove the link that is encapsulating the blog post title on a single blog post page, but when viewing multiple posts (a list) I'd like to have them there. From what I can tell, these are handled by the same line of code:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Such that if I remove the link tag it removes it in both locations. Thanks for the help!

  2. wpbum
    Posted 6 years ago #

    You need to add an IF conditional tag depending on what page you are on and what to see.


Topic Closed

This topic has been closed to new replies.

About this Topic