Styling Posts According to Custom Field (Arthemia theme) (1 post)

  1. ben1000
    Posted 4 years ago #

    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); ?>>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.