Multiple pages in a single post in Wordpress

Discussion in 'PHP' started by PankajKumar, Dec 24, 2009.

  1. #1
    Hello Friends,

    Some of my wordpress posts went so long that the page takes so much time to load. So I am using <!--nextpage--> tag to divide them into several pages and its working fine as expected. The only problem I am facing is that I am using YARRP Plugin and few other plugins on my post and the page numbers link is coming after them, so its not clearly visible to a simple reader as he might get confused as there is only one page. Please see my post for clear understanding

    http://www.mygadgetplanet.com/2009/12/nokia-n900-specifications-review-and-price-details

    I want to move the page numbers before those plugins so that user can see clearly that there are some more pages. I am not able to find where do i need to change. In my Single.php file I can see the wp_link_pages() usage. But i am unable to figure out how those plugins code come in the post page.

    Mods: I have posted similar post in Wordpress forum also but thought may be PHP programming is needed to change and I can get quick help by posting here. Pls understand.
     
    PankajKumar, Dec 24, 2009 IP
  2. sevnrock

    sevnrock Peon

    Messages:
    241
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure about the other one, but I know for YARPP, you can turn off "Automatically display related posts" in the admin panel and manually insert related_posts() after wp_link_pages().
     
    sevnrock, Dec 24, 2009 IP
  3. PankajKumar

    PankajKumar Active Member

    Messages:
    431
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #3
    I agree but in this case I will have to add this on all the posts manually and if I will disable the plugin it will create problem for all my posts. Thats not a feasible solution for me. Anbody pls help who have faced this problem
     
    PankajKumar, Dec 24, 2009 IP
  4. PankajKumar

    PankajKumar Active Member

    Messages:
    431
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Oh finally I solved the problem. Now I am displaying page numbers just after my title and before the content and its looking fine now. Thanks guys for helping out.
     
    PankajKumar, Dec 24, 2009 IP
  5. sevnrock

    sevnrock Peon

    Messages:
    241
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Okay good to hear. In case you wanted it in the bottom before the YARPP, you would have to put the related_posts() in the single.php template. Not in every single post lol.
     
    sevnrock, Dec 25, 2009 IP