WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Posts on Homepage don't link to their individual post page. (3 posts)

  1. richard85
    Member
    Posted 5 years ago #

    Hi there,

    Im using the theme 'charlottenburg'. I didn't realise at first but the posts on the homepage do not link through to their own individual page.

    Is there any code I caninsert into the index.php file to create this link to the post title?

    Over at - http://www.richardalanroberts.co.uk/airstate

    Thanks

    Rich

  2. MichaelH
    Member
    Posted 5 years ago #

    The WordPress Default Theme's wp-content/themes/default/index.php does that with:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  3. richard85
    Member
    Posted 5 years ago #

    Thanks for that, works now.

    I have another issue that I need to get resolved, if you could help:

    http://wordpress.org/support/topic/277658?replies=1

    Thanks

    Rich

Topic Closed

This topic has been closed to new replies.

About this Topic