Shortcode function returns looping
-
Hi There,
I made a shortcode function to show the wp_link_pages() on every post pages.
This is my code :
function showing_page() {
$pagenation = wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><div class=”fl”><span>Page: </span>’, ‘after’ => ‘</div></div>’,’previouspagelink’ => ‘<<‘) );
return “
“.$pagenation.”
“;
}
add_shortcode(‘showthepage’, ‘showing_page’);I put the shortcode [showthepage] before tag ‘<!– nextpage –>’ and the last of the article.
But the result shows me double page links, On top of the article and on the bottom of the article.I want them positioned on the bottom of every pages not on the top.
Can you please tell me how to make it? I am not good at wordpress codes. Thanks.
- The topic ‘Shortcode function returns looping’ is closed to new replies.