I am trying to get featured posts to show differently in category pages to regular posts but cant get the code right.
I am getting the background to change color as I have set in css, however, the change is going right down to the end of the page, not just the one result in the archive, and is messing up the formatting of the sidebar. The code I;m using is this… Where should it be inserted. Almost feel like I’m missing a </div>
`<?php $custom_values = get_post_meta($post->ID, ‘featuredhotel’); ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class($custom_values); ?>>
- The topic ‘Styling Posts According to Custom Field (Arthemia theme)’ is closed to new replies.