New Linkage
28 May ’09
Rockin the Doha, Rockin the Doha
31 May ’09

This is the bit i’m srtuggling with:

</p>
<p>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</p>
<p>&lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;</p>
<p><strong>&lt;?php if( get_post_meta($post-&gt;ID, "hpbottom", true) ): ?&gt;<br />
&lt;img style="float:left;margin:0px 10px 0px 0px;width:50px; height:50px;" src="&lt;?php echo get_post_meta($post-&gt;ID, "hpbottom", true); ?&gt;" width="150" height="150"  alt="&lt;?php the_title(); ?&gt;" /&gt;<br />
&lt;?php include(TEMPLATEPATH."/Cat_Thumb_Assign.php");?&gt;<br />
&lt;?php endif; ?&gt;</strong></p>
<p><strong><br />
&lt;?php if (is_category('28') ): ?&gt;<br />
&lt;?php include(TEMPLATEPATH."/cat_tweet.php"); ?&gt;<br />
&lt;?php else: ?&gt;</strong></p>
<p>&lt;?php the_title(); ?&gt;&lt;/a&gt;<br />
&lt;/h2&gt;<br />
&lt;div class="date"&gt;<br />
&lt;div class="dateleft"&gt;<br />
&lt;p&gt;&lt;span class="time"&gt;&lt;?php the_time('F j, Y'); ?&gt;&lt;/span&gt;<br />
by &lt;?php the_author_posts_link(); ?&gt; &amp;nbsp;&lt;?php edit_post_link('(Edit)', '', ''); ?&gt;<br />
Filed under &lt;?php the_category(', ') ?&gt;&lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div class="dateright"&gt;<br />
&lt;p&gt;&lt;span class="comment"&gt;&lt;?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?&gt;&lt;/span&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>&lt;?php the_content(__('Read more'));?&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</p>
<p>&lt;!-- These are the 'tags' markup   &lt;div class="postmeta2"&gt;<br />
&lt;p&gt;&lt;span class="tags"&gt;Tags: &lt;?php the_tags('') ?&gt;&lt;/span&gt;&lt;/p&gt;<br />
&lt;/div&gt;--&gt;<br />
&lt;div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"&gt;&lt;/div&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>&lt;?php endwhile; else: ?&gt;</p>
<p>&lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;/p&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>

I want it to choose a thumbnail depending on the catagory (the thumbnail assigning happens in  Cat_Thumb_Assign.php). This I’ve had working no problem. Then it should  choose how to display that post dependingon wether its either catagory 28 (a twitter update) or not.

Can anyone figure this out?

Leave a Reply