Forum Replies Created

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

    (@paulrooms)

    Hi. I found out that the plugin I am using to have the chronological order is not able to change “older” to “newer”. I have also read your “Changing the post navigation’s texts” instructions. I am not a coder so bear with me, but isn’t it possible to simply exchange these two words within the code? Ok, maybe I’m just being too naive:)

    So, if I use this thing that you wrote:

    add_filter( ‘tc_list_nav_next_text’ , ‘my_list_nav_buttons_text’);
    add_filter( ‘tc_list_nav_previous_text’ , ‘my_list_nav_buttons_text’);

    function my_list_nav_buttons_text() {
    switch ( current_filter() ) {
    case ‘tc_list_nav_next_text’:
    $text = ‘<span class=”meta-nav”>←</span> old posts’;
    break;

    case ‘tc_list_nav_previous_text’:
    $text = ‘new posts <span class=”meta-nav”>→</span>’;
    break;
    }
    return $text;
    }

    is it in the first two lines that I should replace “buttons” with “previous” in the first line and with “next” in the second? And then I can paste it anywhere in the functions.php file? Thank you for your patience!

    Thread Starter paulrooms

    (@paulrooms)

    Thank you for the reply Denzel, I fixed it.

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