Post styling and/or loop Question
-
Hey WordPresspeople,
i have a question, I’d like to display 4 posts on my index.php with all posts styled a little differently. How do i do this? simply adding an ID to the posts won’t work.So far i’ve tried
<?php query_posts('showposts=1'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> (...) rest of the loop <?php endwhile; endif; ?> <?php query_post('showposts=2&offset=1'); ?> < if have, while, the post > Rest of the code where the_content was in a div with a different id
But that doesn’t do anything (Probably code for an older version of wordpress, this code came from a tutorial/blogpost i googled.)
I’ve also tried styling the posts per category which works but you have to add an extra tag (Featured1, Featured2)
I’d like to have “posted in: Web” in the blogpost
What i’m trying to ask is how do i exclude one of the tags. (only show Web, Logo and leave “Feat1” out of the <?php the_category(‘, ‘); ?> -List.Thanks in advance!
-Mark
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Post styling and/or loop Question’ is closed to new replies.