WordPress.org

Ready to get started?Download WordPress

Forums

WP Custom Fields Search
[resolved] Pagination Fix (7 posts)

  1. dpierce
    Member
    Posted 3 years ago #

    If anyone else is having trouble using pagination with WP Custom Fields Search, here's what I did:

    This worked: http://www.kualalumpurproperty.com/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=2&cs-forsalerent_value-0=+For+Rent&cs-propertytype_value-1=&cs-price_value-2=2500&cs-price_value-3=3040&cs-beds_value-4=&cs-baths_value-5=

    This broke: http://www.kualalumpurproperty.com/page/2?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=2&cs-forsalerent_value-0=+For+Rent&cs-propertytype_value-1&cs-price_value-2=2500&cs-price_value-3=3040&cs-beds_value-4&cs-baths_value-5

    Go to the Editor and change action="<?php bloginfo('url');?>" in searchform.php to action="<?php echo home_url();?>" Kudos to http://wordpress.stackexchange.com/questions/11098/custom-permalinks-break-search-pagination

  2. dapis72
    Member
    Posted 2 years ago #

    Hey how are you?

    I was lloking website of kuala lumpur and it looks awesome. Could you be so kind and tell me how you make that outlook of search results with few custom fields and also on single post how you make nice outlook of all custom fieds?

    Thank you and have a nice day.

    Regards
    Damian

  3. dpierce
    Member
    Posted 2 years ago #

    Damian, I'm using a theme. See themeshift.com

  4. dapis72
    Member
    Posted 2 years ago #

    Hey

    I see, thank you for your replay anyway. I will use your pagination info.

    Bye

  5. eian00
    Member
    Posted 2 years ago #

    Hello dpierce,

    I am having the same problem, but I can't find where to find
    action="<?php bloginfo('url');?>".

    I don't have the file searchform.php , but wp-custom-fields-search-form.php and it's content looks like:

    <?php if($title && !(@$params['noTitle'])){
    	echo $params['before_title'].$title.$params['after_title'];
    }?>
    	<form method='get' class='<?php echo $formCssClass?>' action='<?php echo $formAction?>'>
    <?php echo $hidden ?>
    		<div class='searchform-params'>
    <?php		foreach($inputs as $input){?>
    <div class='<?php echo $input->getCSSClass()?>'><?php echo $input->getInput()?></div>
    <?php		}?>
    </div>
    <div class='searchform-controls'>
    
    <input type='submit' name='search' value='<?php _e('Search','wp-custom-fields-search')?>'/>
    </div>
    <div class='searchform-spoiler'><a href='http://www.don-benjamin.co.uk/' title='Brighton Web Development'>DB WordPress Plugins</a></div>
    </form>
  6. dpierce
    Member
    Posted 2 years ago #

    @eian00

    Try looking for searchform.php in Appearance -> Editor

    It's a file from the theme, not the plugin.

  7. eian00
    Member
    Posted 2 years ago #

    thank you for the replay dpierce, but it still won't work.

    I do the search with the wp-custom-fields-search-form.php template, not the searchform.php from the default template as I use a custom field search with more search fields, and then when I have to go to the next result page, it says "There are no results for your search"

    so what I am using for the search is
    <?php if(function_exists('wp_custom_fields_search')) wp_custom_fields_search(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic