Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

How to set search result page by custom field?

Old Sep 28, 2012, 11:51 AM
1 posts · Sep 2012
i need help...
i am having a bbpress website, and i want my search results will be sort by custom field.
the cf is "price", and the result need to be display from the highest to the lowest.

this is the code for my search.php
<?php get_header(); ?>

<div id="main">

<?php do_action( 'bp_before_blog_search' ) ?>

<div class="blog-heading">
<em class="fr"><?php _e('search resulte', 'huddle'); ?></em>
<h3 class="fl"><?php printf( __( '"%s"', 'huddle' ), get_search_query() ); ?></h3>

<div class="clear"></div>

<?php // Include the WordPress loop file
load_template( TEMPLATEPATH . '/includes/loop.php' );

<?php do_action( 'bp_after_blog_search' ) ?>


<?php get_sidebar(); ?>

<?php get_footer(); ?>
this is extremely urgent. i really need help here guys.

i already read a lots of tutorial about it, but still can't do it.

Last edited by lmilesw; Sep 28, 2012 at 12:11 PM.
Old Sep 28, 2012, 12:14 PM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
This doesn't appear to be a theme related issue. Which of the BFA themes are you using?
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.


custom fields

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show custom field in kicker - only IF field value exists jaxon Center area post/pages 13 Feb 6, 2013 01:11 PM
[SOLVED] How to configure the font of the page which show a search result. Talia Header configuration & styling 2 May 19, 2011 07:21 AM
Custom field image with custom field link mbastos Atahualpa 3 Wordpress theme 1 Jul 1, 2010 08:17 AM
search box results giving the same result no matter what searched Dani808 Customization, Design, Programming... 5 Dec 31, 2009 07:50 PM

All times are GMT -6. The time now is 03:10 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.