Treehouse: Grow your CSS skills. Land your dream job.

Home Page Pagination while using Custom Page Template with WordPress

  • # June 25, 2013 at 3:34 pm

    I seem to be up against a wall with an issue I am having. I have a custom page I made for WordPress, it pulls in 3 querys. The first two are there for the featured slider at the top of the page, the 3rd is for the main feed of posts, from two different Custom Post Types (the ID of the div with this feed is “feed-card”. I have spent a large amount of time searching online, and trying a large variety of possible solutions, but really just can’t seem to find out why the pagination is not working. When I click the next posts link at the bottom it basically refreshes the page. It shows the /page/2 but it doesn’t go to that page. I switched back to default permalinks, and it DOES work that way. But for the client I need to use %postname%. I feel like I have tried everything, and am hoping someone can help me out.

    Here is a codepen to the code for the page.
    []( “Codepen”)

    # June 25, 2013 at 3:36 pm

    I can post any code in addition to the Codepen, that may prove useful. I should note that the two custom post types being used, are not doubled as page names, I have kept the CTP names exclusive, as to not interfere with anything.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.