ThemeShaper Forums » Thematic

[closed]

Replace Read More w/ Post Title?

(3 posts)
  • Started 10 years ago by cameronparkins
  • Latest reply from cameronparkins
  • This topic is resolved
  1. Hey all,

    Trying to replace the default read more text - got it working just fine using Justin Tadlock's solution:

    http://justintadlock.com/archives/2009/07/01/how-to-filter-a-wordpress-themes-more-link-text

    <?php

    add_filter( 'the_content_more_link', 'my_more_link', 10, 2 );

    function my_more_link( $more_link, $more_link_text ) {
    return str_replace( $more_link_text, 'Continue reading →', $more_link );
    }

    ?>

    Instead of the arrow (→) I want to generate the post title - tried comping together with this tutorial (http://www.stratos.me/2009/05/insert-post-title-in-read-more-easily/) but can't seem to get it working. Any help is much appreciated.

    Posted 10 years ago #
  2. Take a look at my comment: http://forums.themeshaper.com/topic/noob-customize-read-more-quicktaghow

    Chris

    Posted 10 years ago #
  3. thanks so much chris! sorry i didn't see that previously..looked around for hours. worked like a charm.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.