Support » Developing with WordPress » Adding pagination?

  • Hi, I am running a modeling site that has a big list of models that I am featuring on my site…However, I am getting a fairly large list of models and its becoming too much for a single page load and I am clueless as to how to make it have the next and previous buttons without actually making other pages and making them type of links myself on each page…could get confusing after a while and it is just adding more steps to my process that Is already beyond where I want it to be…Would be nice to have a way to just have it show 10 or so listings and have the next button…Most of my traffic is mobile so it would have to be mobile friendly.
    I have found a plugin that pretty much says it does what I need but without paying the $20 I really have no idea..It also is listed as not updated to my version so i’d be paying for something that might not work tomorrow…

    Caution: My page is NOT an adult website but may contain images aimed for adults…this is a clean link tho. Just a list of the models (with thumbnails). The page I am having the issues with is > http://beautifullyinked.us/beautifully-inked-featured-girls/

    [Moderator note: While not pornographic, link is NSFW. Such links are allowed as long as they are clearly labeled]

    Any help is greatly appreciated

    • This topic was modified 4 years, 2 months ago by bcworkz.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    How is the page content generated? If they are just images and links entered through the page edit screen, you can insert page breaks by adding this tag: <!--nextpage-->

    If any other method is used to create content, we need information on how that is done.

    Thread Starter beautifullysuicidal

    (@beautifullysuicidal)

    The page is generated using Beaver Builder Plugin (Lite Version)
    I have inserted rows and then I am adding modules for each of the thumbnails…I am sure it’s the hard way to do things but I have very little html knowledge…

    I can keep adding rows until the plugin crashes or the page gets so big that it wouldn’t load…never got to that point yet but I assume that it will just continue to get slower the more rows of thumbnails I add.

    Thread Starter beautifullysuicidal

    (@beautifullysuicidal)

    I just tried to add a new line and a new HTML module with “<!–nextpage–>” but all it did was add the pagination to the bottom of the page….page 1 and 2 were the same pages…just refreshed basically

    Moderator bcworkz

    (@bcworkz)

    For that tag to work it needs to be in normal content that passes through “the_content” filter, which is how normal page content entered through the default page edit screen is processed. For content created through Beaver Builder, it would be best to find out from the plugin developers. Unfortunately, their support seems weak. See what you can find out from their knowledge base and docs.

    Thread Starter beautifullysuicidal

    (@beautifullysuicidal)

    Yea they say that the read more tag can’t be used on pages…only on post. Any ideas of a work around?

    Moderator bcworkz

    (@bcworkz)

    Hmmm. Works on my pages. But I don’t use beaver builder. I was wrong about the_content filter though. The pagination is setup by setup_postdata(), which is called by the_post(). So the tags need to be in $post->post_content within the standard WP loop. I don’t know how beaver builder manages output, but if your content can be assigned to $post->post_content if it’s not already there, then when setup_postdata() is called, the content should get split at each tag into the global $pages array.

    the_content() function somehow knows to only output the current page part of global $pages. wp_link_pages() is used to output the links to the individual pages. I’m not sure how this is all accomplished, but it works on pages AFAIK. Following the same process should yield similar results.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding pagination?’ is closed to new replies.