ThemeShaper Forums » Thematic

[closed]

IMG and "read more" link to my excerpt?

(3 posts)
  • Started 10 years ago by soupking
  • Latest reply from soupking
  • This topic is not resolved
  1. soupking
    Member

    Hi everybody,

    I've got a blog. Each excerpt for the post has an image and 'read more' link.

    However, with every post I have to go into the excerpt text field in the admin and physically type in the post link address every time. The same goes for the read more link I pulled from somewhere:

    function childtheme_more_text($content) {
        $content = ' ... click header to read more! ';
        return $content;
    }
    add_filter('thematic_postfooter', 'childtheme_more_text');

    Is there some basic PHP string that recognizes what blog post to link to? I've done searches but I must be putting in the wrong text because I can't find anything.

    Posted 10 years ago #
  2. beanfair
    Member

    <a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>" class="more-link">Read the rest of this entry </a>

    Posted 10 years ago #
  3. soupking
    Member

    Brilliant! Thank you!

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.