Post Navigation Links coming all the way on bottom after share link and related

Hi All,

I am trying to split my post into multiple pages and i am trying tag <!–nextpage–>. Its working but link to next page is coming all the way in the end after related post and social share links. Need help.

Post Navigation Links coming all the way on bottom after share link and related post

Here is the link of the post where i have implemented pagination.

Hello there,

Thank you for reaching out to us here. You can put it right after the post content using jQuery code. Please do these steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box

(function($){
      
  if( $('.page-links').length ) {

      $('.page-links').remove().clone().appendTo('article.hentry');
      
  }

})(jQuery);

  1. Update

The code above removes and clones your pagination element and move it in to .hentry element.

Regards,
Kharis

Did not work. Installed the plugin and added the code clicked update. Still next page link is coming at the end of everything. :frowning:

Hello there,

Where did you copy the code from? Did you get it directly on my support forum reply instead of email?

Regards,
Kharis

No. I copied from the post reply.

Please visit this link and replace your code with it.

Regards,
Kharis

Did that. No success. I am using <!–nextpage–>. really sad now.

Please replace the code with this one:


(function($){
      
  if( $('.page-links').length ) {

      $('.page-links').remove().clone().prependTo('.zem_rp_content');
      
  }

})(jQuery);

Let me know how it goes.

Regards,
Kharis

worked like a charm…thank you so much for your time. I really appreciate it…You rock!!!

You’re most welcome here!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis

I am having the same issue. The only thing, when I use the last code that worked for promilpandey, the numbers disappeared. Any tips?

Hello @mikethetruth,

Please share the link to your pages here, so I can take a closer look.

Regards,
Kharis

MikeTheTruth.com