WordPress: next_post_link change target

Discussion in 'WordPress' started by davidspan, Jul 3, 2008.

  1. #1
    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;
    Code (markup):
    But it's not working could someone point out where I'm going wrong.
     
    davidspan, Jul 3, 2008 IP
  2. mnvamsi

    mnvamsi Active Member

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    I don KNOW Much about this wordpress code but
    May be this can help you
    ronrothman.com/public/leftbraned/wordpress-fix-category-exclusions-in-next_post_linkprevious_post_link/
    sorry if it cannot help you
     
    mnvamsi, Jul 9, 2008 IP