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 »

Search Results Not Appearing


  #1  
Old Jan 8, 2013, 09: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, 09:56 AM
juggledad's Avatar
juggledad
 
23,682 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, 10: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

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 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 05:36 PM.


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