Hi again, I tried to enter the code but it's not working. Can you just put it in for me into this original code, and I'll copy and paste the whole thing? Perhaps I'm not putting it into the right place. Thank you!
<?php /** * The template for displaying Search Results pages. * */ get_header(); ?> <?php get_sidebar(); ?>
Comments
1) Template is not prepared to that. You need to edit search.php.
2) It seems that is bug. I will let you know as soon as I will fix it. Thanks for information!
Best,
Miłosz
this code will add right sidebar:
<?php if (is_active_sidebar('blog-widget-area')) : ?>
<?php if (!function_exists('dynamic_sidebar')
|| !dynamic_sidebar('blog-widget-area')) : ?>
<?php endif; ?>
<?php endif; ?>
You have to add it left to the posts list.
Best,
Miłosz
<?php
/**
* The template for displaying Search Results pages.
*
*/
get_header();
?>
<?php get_sidebar(); ?>
<?php if (have_posts()) : ?>
<?php
/* Search Count */
$allsearch = &new WP_Query("s=$s&showposts=-1");
$count = $allsearch->post_count;
wp_reset_query();
?>
<?php printf(__('Search results - %1$d results found for \'%2$s\'', TPL_SLUG), $count, get_search_query()); ?>
<?php
/* Run the loop for the search to output the results. */
get_template_part('loop');
?>
<?php else : ?>
<?php _e('Search results - nothing found', TPL_SLUG); ?>
<?php endif; ?><?php $apollo13->blog_nav(); ?>
<?php
if (function_exists('wp_paginate')) {
wp_paginate();
}
?>
<?php get_footer(); ?>
can I try do it on your server?
Best,
Miłosz
please send me an email - when I can make it.
Best,
Miłosz