Home>Support>Search Result doesnt go to next page

Search Result doesnt go to next page

Hi,

The search result have stopped going from Page 1 to Page 2.

For example : searching for any keyword on www.thebabynameslist.com can span multiple pages ( 10 results per page )

but clicking on Search result -> Page 2/3/4.. etc doesnt seem to work

Searching for the word Charlotte .. I entered cha .. charlotte comes in Page 2 but I am not able to traverse to Page 2

http://www.thebabynameslist.com/?s=cha&submit=Search

I am not sure but this could have happened after the recent theme update.

I have tried to use my custom child theme as well as the original vantage theme with the same result.

Can you please help!

Thanks!

Warm Regards,
Admin @ thebabynameslist.com

URL: http://www.thebabynameslist.com/?s=cha&submit=Search

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Greg Priday
    Hi, I Work Here

    Hi

    The problem there appears to be the extra “&submit=Search” that’s being added to the search URL. Where is the search form you’re using? How did you add this search form? Once I know those things, I should be able to help you fix this.

  2. 9 years, 5 months ago admin @thebabynameslist.com

    Thanks for the quick reply Greg and thanks for pointing me to the right solution.

    I have fixed the problem by copying over the vantage parent search form into the child one and it works ( I guess I was getting cached results even when I changed the themes ) .

    My earlier form ( I guess some of it may have been copied over from wordpress codex site )

    <?php
    /**
     * The template for displaying search forms in vantage
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    
    <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    	<label for="s" class="assistive-text"><?php _e( 'Search ', 'vantage' ); ?></label>
    	<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search Name/Meaning', 'vantage' ); ?>" />
    	<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'vantage' ); ?>" />
    </form>
    
    

    My current search form(issue fixed) is simple, a straight pull from vantage parent but just a change in the placeholder value

    <?php
    /**
     * The template for displaying search forms in vantage
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    
    <form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    	<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" placeholder="<?php esc_attr_e( 'Search Name/Meaning', 'vantage' ); ?>"/>
    </form>
    

    Is there a way to put the placeholder value at some place apart from creating a new child page .. Not a big deal but just wanted to know in case you guys already have that solution .

    Thanks once again . You guys are the best .. Your customer service is truly outstanding ..

    Keep it up!!

    Best Regards,
    admin @ thebabynameslist.com

  3. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Hi admin

    Thanks for the update. Really glad to hear you made progress.

    To my knowledge there is no other way to have done this, other than the way you’ve used here.

    All the best with your site.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More