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


  #1  
Old Jan 8, 2013, 10:33 AM
savvystephy
 
2 posts · Jan 2013
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.
  #2  
Old Jan 8, 2013, 10:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa and WP?
What is the URL?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 8, 2013, 11:28 AM
savvystephy
 
2 posts · Jan 2013
Hi Juggledad,

We are using WP 3.5 / Atahualpa 3.7.8.

Unfortunately, I don't think I am able to share the link since this is for a government customer.. Could I get you code that would help?

Thanks!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Results kpkes@yahoo.com Center area post/pages 4 Jul 16, 2012 03:57 AM
Search results WebHeer Center area post/pages 2 Apr 8, 2012 02:51 AM
Customize Search Results page when "No Results" vCopia Center area post/pages 2 Mar 1, 2011 09:05 AM
search bar results three50seven Header configuration & styling 1 Sep 4, 2010 07:22 AM


All times are GMT -6. The time now is 05:23 PM.


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