• I’m trying to change the target for the next post link. My code:

    $Next_Button = next_post_link('« %link');
    $Next_Button2 = str_replace('">', '" target="_top" >', $Next_Button);
    echo $Next_Button2;

    But it’s not working could someone point out where I’m going wrong.

The topic ‘next_post_link target’ is closed to new replies.