WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Icithis
    Member
    Posted 4 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. Aaron
    Member
    Posted 4 years ago #

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

    http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic