• I need to replace the wording at the end of category posts run in the loop. I’ve tried 3 different filters in functions.php(child) and 2 other techniques I found in the forums with no change in the output. I know I’m in the correct place in the loop because I put some markers in that showed in the output.
    I’m happy with a filter, function, or code changes in the loop. I refuse to edit twentyten itself, of course!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mrtaylor

    (@mrtaylor)

    Thanks alchymyth! I saw a forum post with a version of that code and it didn’t work for me.. I should have gone directly to the source because that worked fine! I’ll copy that here for others to find. Thanks you so much.. I was starting to feel like twentyten was cursed!

    class Transformation_Text_Wrangler {
    function reading_more($translation, $text, $domain) {
    $translations = &get_translations_for_domain( $domain );
    if ( $text == 'Continue reading <span class="meta-nav">&rarr;</span>' ) {
    return $translations->translate( 'View more details <span class="meta-nav">&raquo;</span>' );
    }
    return $translation;
    }
    }
    add_filter('gettext', array('Transformation_Text_Wrangler', 'reading_more'), 10, 4);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace text "Continue reading" in twentyten child theme’ is closed to new replies.