Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 169539

How to add category filter to my template

$
0
0

Replies: 0

Hi, first want to say this plugin is super! awesome job

now I’m on step where trying to customize my template to show results in best way for users.

1 – is there a way to show some category scroll down list to search only in selected category as the option. to my template ?

2 – other question is, plugin give us the option to show post thumbnail but the size ow it is 15-/150, and i want to show not a thumbnail, i wan full image resezed in css to 17/250 how to do it? i have resize image but have cutted sides cuz is fitted to 150/150 first

<?php
/*
Template Name: Search Page
*/
?>
<?php get_header(); ?>
<div class="col-md-9">
<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
$s = bsearch_clean_terms( apply_filters( 'the_search_query', get_search_query() ) );
get_header(); ?>

	<section id="primary">
		<div id="content searchpageform" role="main">
			<?php $form = get_bsearch_form( $s );
			echo $form;	?>
			<header class="page-header">
				<h1 class="page-title"><?php printf( __( 'Wyniki wyszukiwania dla: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
			</header>
			<div class="ptorrent-desc searchpage">
			<?php echo get_bsearch_results( $s, $limit ); ?>
			</div>
		</div><!-- #content -->
	</section><!-- #primary -->

</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Viewing all articles
Browse latest Browse all 169539

Trending Articles