• Leo Blanchette

    (@leoclipartillustrationcom)


    I’ve been having a crippling problem I can’t seem to get help with on this website.

    I’ve been using paginate_links() to give me…paginated links :D.

    It puts out a link like this:

    https://localhost/?s=cute&post_type=image&paged=2

    Which gives a 404. But if I change it manually, in the browser bar to page

    https://localhost/?s=cute&post_type=image&page=2

    It works fine. The question I have is how do I get wordpress to work consistently with this? Should I be using “paged” and finding a way to get that recognized, or is there a way to get “page” to be output in that link instead?

Viewing 4 replies - 1 through 4 (of 4 total)
  • it would be ‘page‘ not ‘paged’

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    AN ANSWER! THERE IS LIFE ON EARTH!

    Thank you thank you thank you! I feel like I should give you a prize for being the first person to answer me in so long.

    So my question is why is paginate_links() bamboozling me by outputting putting out paged? I can’t find how this can be influenced or changed.

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    I get the impression, after almost two weeks of asking this, people just don’t know?

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    Not to embarrass anyone, but why is paginate_links() causing &paged= to be added to the url instead of &page=?

    If I manually change in the URL to page then suddenly everything works, however the paginate_links() function always defaults to page 0.

    I’ve been stuck in the Bermuda triangle of wordpress anomalies for months now… slowing dying of thirst in the parched desert of wordpress pagination answers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘paginate_links(), page or paged variable?’ is closed to new replies.