Shape 5

Wordpress Club Themes => BlogBox - Club => : dache74 July 26, 2016, 07:35:05 AM



: Post pagination (page breaks)
: dache74 July 26, 2016, 07:35:05 AM
I've added <!??nextpage??>  tags in my post, but it does not break up into multiple pages. Is there a place where pagination needs to be enabled in this theme?



: Re: Post pagination (page breaks)
: Tristan Rineer July 26, 2016, 08:07:17 AM
I was not aware that was even a feature in WP.  There is already pagination built into the theme, but if it's not working for split pages, I'll have to look at the code.  Is the access information you sent me previously still active?  If so, I'll take a look at your site today and see if I can figure it out.  If it's a different site, can you PM details of FTP access & WP Login?  What page are you using the pagination code on? 


: Re: Post pagination (page breaks)
: dache74 July 26, 2016, 08:17:12 AM
Tristan,

Same site and login info. Here is the post I am trying to paginate: http://www.hackerdad.co/security/state-of-the-household-2016/.

Supposedly, this feature is built into WP. Here is a reference article: http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/

Thanks!


: Re: Post pagination (page breaks)
: Tristan Rineer July 26, 2016, 09:42:02 AM
I found the problem.

You are using the visual editor, which filters out HTML.  If you want to use the <!--nextpage--> tag, you need to enter it using the text version of the editor (as stated in the 2nd sentence, here: https://codex.wordpress.org/Styling_Page-Links ).


: Re: Post pagination (page breaks)
: dache74 July 26, 2016, 09:56:49 AM
Nope - I enter this tag in the Text editor, but after the post editor is closed and re-opened, the tag gets re-written.


: Re: Post pagination (page breaks)
: Tristan Rineer July 26, 2016, 10:12:25 AM
I verified the code, and everything that's needed in order to display the paginated content is already in the theme code. 

I just looked at the post content, and it appears that the problem is the tags being wrong. 

This is what you have:
:
<!??nextpage??>

This is what you need:
:
<!--nextpage-->

The hyphen/minus character you are using isn't the correct one for HTML.  I'm not sure if that's related to your keyboard encoding, or something else, but I replaced one of the tags with the correct characters, and it started working.


: Re: Post pagination (page breaks)
: Tristan Rineer July 26, 2016, 10:13:36 AM
It appears that the forum converted the hypen characters from your version of the code to question marks; I'm not sure why that is.


: Re: Post pagination (page breaks)
: dache74 July 26, 2016, 10:59:44 AM
yep - looks like the forum converted the tag.  Not sure why the tag encoding is not correct -- I use a regular en-US keyboard. I copied/pasted the tag you made, and it's working fine. Thanks!