Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Search Results Not Appearing


 
Prev Previous Post   Next Post Next
  #1  
Old Jan 8, 2013, 09:33 AM
savvystephy
 
2 posts · Jan 2013
Search Results Not Appearing

When the search.php file is present in the theme folder, the search results don't show up. I tested to see if this was the theme file by removing it (then the results showed up, but not at all nicely formatted).

Here is a picture of what the search.php template outputs:



Here is the code of the search.php file:

Code:
<?php 	/* get all options: */


include (TEMPLATEPATH . '/functions/bfa_get_options.php');


get_header(); ?>

<h1>Search Results</h1>
<br />

<span style="clear:left"></span>

<?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 /* This outputs the next/previous post or page navigation. 


	This can be edited at Atahualpa Theme Options -> Style & edit the Center column */

	bfa_center_content($bfa_ata['content_above_loop']); ?>


	<?php /* The LOOP starts here. Do this for all posts: */

	while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>


		<?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */


		$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' : 'even-post' ); ?> 


		<?php /* This is the actual Wordpress LOOP. 

		The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */

		bfa_center_content($bfa_ata['content_inside_loop']); ?>


	<?php /* END of the LOOP */

	endwhile; ?>

	<?php /* This outputs the next/previous post or page navigation and the comment template.

	This can be edited at Atahualpa Theme Options -> Style & edit the Center column */

	bfa_center_content($bfa_ata['content_below_loop']); ?>


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

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

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>
Thank you for any advice / guidance you may be able to give.
 

Bookmarks



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 results WebHeer Center area post/pages 2 Apr 8, 2012 01:51 AM
Customize Search Results page when "No Results" vCopia Center area post/pages 2 Mar 1, 2011 08:05 AM
search bar results three50seven Header configuration & styling 1 Sep 4, 2010 06:22 AM


All times are GMT -6. The time now is 02:09 AM.


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