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 » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to sort custom search results?

Prev Previous Post   Next Post Next
Old Dec 22, 2010, 12:45 AM
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');
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" */ ?>

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


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:25 PM.

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