Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   How to set search result page by custom field? (http://forum.bytesforall.com/showthread.php?t=18508)

orimo Sep 28, 2012 11:51 AM

How to set search result page by custom field?
 
hello.
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>
</div><!--.blog-heading-->

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

<?php do_action( 'bp_after_blog_search' ) ?>

</div><!--#main-->

<?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.

lmilesw Sep 28, 2012 12:14 PM

This doesn't appear to be a theme related issue. Which of the BFA themes are you using?


All times are GMT -6. The time now is 11:33 PM.

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