WordPress.org

Ready to get started?Download WordPress

Forums

Pagination not working with custom WP_Query (12 posts)

  1. roryreiff
    Member
    Posted 2 years ago #

    I have the following code, attempting to get pagination working, and it isn't producing paginated links below my code. Thoughts? Thanks for the help.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  2. roryreiff
    Member
    Posted 1 year ago #

    Ok - here is the code I am referring to - any help would be greatly appreciated. http://pastebin.com/P3Gjh77P

  3. Jay
    Member
    Posted 1 year ago #

    I am having the same issue.

  4. roryreiff
    Member
    Posted 1 year ago #

    Anyone? Still having this issue. Thanks for any help/guidance you can give.

  5. Jay
    Member
    Posted 1 year ago #

    change $myquery to $wp_query

  6. roryreiff
    Member
    Posted 1 year ago #

    That seemingly has no effect. It just changed the variable name?

  7. Jay
    Member
    Posted 1 year ago #

    see what happens with this

  8. roryreiff
    Member
    Posted 1 year ago #

    That link goes to an 'unknown' pastebin

  9. Jay
    Member
    Posted 1 year ago #

    Try this one

  10. roryreiff
    Member
    Posted 1 year ago #

    Jay - that still did not produce previous/next links. Any thoughts?

  11. Jay
    Member
    Posted 1 year ago #

    try removing this 'paged' => $paged, under 'posts_per_page' => 10, but check out this article if you have not already.

  12. roryreiff
    Member
    Posted 1 year ago #

    Nope - still not doing it. :( I have no idea why...

Topic Closed

This topic has been closed to new replies.

About this Topic