Hi Guys,
I'm trying to add the <!--nextpage-->
tag dynamically using a Shortcode call, but all it's actually doing is adding it as an HTML Comment instead of rendering it as pagination links, here's my code that I'm attempting to do;
public function __construct() {
add_shortcode('CONTINUED', array(&$this, 'continued_handle'));
}
public function continued_handle() {
global $post;
return $this->your_post_split($post);
}
public function your_post_split($content) {
$output = '<div>In page 1</div>';
$output .= '<!--nextpage-->';
$output .= '<div>In page 2</div>';
return $output;
}
If anyone can give me any advice as to how I can get it to render the <!--nextpage-->
tag as Pagination links I'd be highly appreciated!