I’m making a wordpress theme and runned into something i can’t figure out.
In comments.php
<?php $args = array(
'before' => '<p>Pages',
'after' => '</p>',
'link_before' => '',
); ?>
<?php wp_link_pages( $args ); ?>
In the wordpress text editor:
test1
<!--nextpage-->
test2
<!--nextpage-->
This shows two links. Pages: 1 2
When 1 is clicked it will show “test1”
When 2 is clicked it will show “test2”
What i want add a div for each page:
When 1 is clicked <div id='slide'> test1 </div>
When 2 is clicked <div id='slide2'> test2 </div>
I searched google and stackoverflow but i can’t figure it out.
Any help is appreciated,
Thanks already
This questions is still unanswered? Add a different div for each ‘page’. How can i achieve this? With jquery perhaps?