![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
All right,
Ok, see how the posts are listed in hpbottom. I want to list posts the same way in both author.php and archive.php. I am working now on author.php, but I can't get it to work. Code:
<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<div class="postarea">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
[img]<?php bloginfo('template_url'); ?>/images/thumbnail.png[/img]" />
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(350, "[Read more of this review]"); ?>
<div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endif; ?>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get the Author Posts Url Link of Author Archive Page | coolsaint | General Discussion | 1 | 11-02-2010 01:00 PM |
| hpbottom images in archive page | gtotino | General Discussion | 6 | 07-01-2009 10:53 AM |
| Author Archive / Permalinks | internetgenius | General Discussion | 3 | 06-09-2009 11:51 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us