WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom URL Query String Woes (5 posts)

  1. macwise
    Member
    Posted 7 years ago #

    I have a custom page that has a search form for names and meanings. Everything is fine until I click on the pagination links (next 10 links). I know enough about PHP to be dangerous, and not enough to be useful. I am wondering if someone here would mind looking at the page to see why the behavior is as it is.

    To see this behavior go to:
    http://www.babyquestions101.com/the-good-stuff

    Type in "bo" and click the search button. (to get more than 10 results)
    Click on the "Next 10 >>" link, and that is where the page error happens. The URL string is then:
    http://www.babyquestions101.com/the-good-stuff?s=10&q=bo
    and for some reason it errors out.

    Can someone here please point me in the right direction?

  2. macwise
    Member
    Posted 7 years ago #

    *bump*

    Just wondering if anyone has an idea what I'm talking about, or if so, what the problem might be?

  3. pizdin_dim
    Member
    Posted 7 years ago #

    Obviously, you've changed it since you posted here last. There is no "Next 10 >>" link anymore when I search for "bo", just a bunch of article summaries.

    If you've resolved the problem, can you mark this post as such? Thanks.

  4. macwise
    Member
    Posted 7 years ago #

    pizdin_dim:

    Sorry, I should have specified...you need to search in the BOTTOM search field just above where it says "Please enter a full or partial first name to start", not the one in the header bar. Make sure you click the BUTTON that says "Search", not the one that says "GO". Hope this clears things up...Thanks for looking, though

  5. macwise
    Member
    Posted 7 years ago #

    Ok, I figured it out. Looks like my custom php code was calling a variable $s which was conflicting with a WordPress variable somewhere. I changed the variable $s in this code to $startat, and the problem went away.

    The fixed page is here:
    http://babyquestions101.com/baby-name-meaning

Topic Closed

This topic has been closed to new replies.

About this Topic