Sincere apologies if this has been asked before. To be honest I didn't know what terms to search for well enough to find relevant content.
Goal: My company has a press page that is built using some custom PHP built into Wordpress. The press page can be seen here: http://www.hospitalityq.com/press
My marketing manage would like to change the light gray border on the press to colors within our company palette. We would have 5 colors that we would like the press items to rotate throughout. Is it possible to color each press article with it's own color and have that done through adding on to our PHP script?
Below is a copy of our existing script.
I hope that makes sense. I'm happy to post a mockup if that's easier.
Best, Dan
<?php
$postID = get_the_ID();
$meta = get_post_meta($postID);
?>
<!--pre>
<?php
//var_dump ($meta);
?>
</pre-->
<?php
if( has_post_thumbnail( $postID ) ):;
?>
<div class="clear-after">
<div class="post-image">
<a
href="<?php echo $meta['hq_news_articles_link'][0] ?>"
class="vc_read_more"
title="Read about <?php the_title_attribute(); ?>"
target="_blank">
<?php the_post_thumbnail($postID); ?>
</a>
</div>
<?php
endif;
$infoClass = 'post-info '. (!has_post_thumbnail( $postID ) ? 'no_image' : '');
?>
<div class="<?php echo $infoClass; ?>">
<h4>
<a
href="<?php echo $meta['hq_news_articles_link'][0] ?>"
class="vc_read_more"
title="Read about <?php the_title_attribute(); ?>"
target="_blank"
>
<?php the_title();?>
</a>
</h4>
<h5>
<?php the_date('F j, Y');?>
</h5>
<p><?php
echo substr(get_the_excerpt(),0, 115);
// echo wp_trim_words(get_the_excerpt(), 20);
?>…
<br><a
href="<?php $meta['hq_news_articles_link'][0] ?>"
class="hq_press-read-more"
title="Read about <?php the_title_attribute(); ?>"
target="_self"
>
Read article
</a>
</p>
</div>
</div>