hey guys, i'm working on search.php page wordpress, when search on website 1 result. doing wrong? below search.php main part (excluding header, sidebar, , footer).
<?php $posts=query_posts($query_string .
'&posts_per_page=15'); ?>
<?php if (have_posts()) : ?>
<div class="pushhh">
<div class="thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php getimage('1'); ?>&w=150&h=150&zc=1">
</a>
</div>
<a class="titlesearch" href="<?php the_permalink() ?>" rel="bookmark"
title="permanent link <?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
<div>
<a class="textunderneath"> <?php the_time('l, f j, y - g:ia') ?> <?php the_author() ?> | </a> <a class="searchcomments"> <?php comments_number( 'no responses', 'one response', '% responses' ); ?> </a>
</div>
</div>
<?php else : ?>
<?php endif; ?>
please out guys. mean lot
let me start off saying i've never used wordpress.
checks see if there posts "if (have_posts()) :" never iterates on them.
did stock search page like? did have foreach clause?
Forums Special Interests Web Design and Development
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment