gaiiden

Member

Forum Replies Created

  • In reply to: Use WP Custom Fields to change Read More button text?

    #46551

    thanks, that helps. Much appreciated

    In reply to: Use WP Custom Fields to change Read More button text?

    #46549

    hrm… I didn’t understand how that code you linked to related to the “Read the rest of this entry” button, so I decided to brute-force it and just did a search to find out where the button text was being applied and modified the loop.php file to be

    <?php
    $moretext = get_post_meta(get_the_ID(), 'more text', true);
    if (strlen($moretext)) {
    the_content( '<span class="block-button">' . __( $moretext . ' &raquo;', 'graphene' ) . '</span>' );
    } else {
    the_content( '<span class="block-button">' . __( 'Read the rest of this entry &raquo;', 'graphene' ) . '</span>' );
    } ?>

    And that works great, but yea I’m modifying your base code so that’s not really the most elegant of solutions I know. But hopefully you have a better idea of what I’m asking.

    Or perhaps you do understand and I just need a better idea of how to modify that code snippet you linked me to, because I really can’t figure it out.

Viewing 2 posts - 1 through 2 (of 2 total)