Not sure anyone can help me with this one.... but 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.