Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to sort custom search results?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Dec 22, 2010, 12:45 AM
blogmom
 
24 posts · Jun 2009
[SOLVED] How to sort custom search results?

I copied index.php to search.php as described here http://forum.bytesforall.com/showthread.php?t=610 and it works fine. But I am left confused with two questions:

1. how to sort the search results (by a custom field)?
2. how to specify/override the number of search results returned?

the contents of my search.php is basically:
PHP Code:
<?php     /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;
get_header(); ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] = 0/* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

//MY CODE IS HERE
            
    <?php /* END of the LOOP */
    
endwhile; ?>


<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>


<?php get_footer(); ?>
Any help with this would be great. Running Atahualpa v.3.5.3 thanks....
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Results kpkes@yahoo.com Center area post/pages 4 Jul 16, 2012 02:57 AM
search bar results three50seven Header configuration & styling 1 Sep 4, 2010 06:22 AM
Template for search results kjetil Center area post/pages 1 Jun 14, 2010 04:06 AM
wp-custom-fields-search Results Not displaying Byline/Footer joan Plugins & Atahualpa 1 Sep 17, 2009 10:38 AM


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


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