I'm just working on a "quick" change to the blog-entry-subtitle of specific posts in a category on my wordpress website. I'm hoping to have "Published in Orchard and Vine Magazine on:" instead of "Posted on:".
You'll see that the page I'm trying to customize is here
<?php if ( is_category('Legal Libation Columns') ) : ?>
<h2 class="blog-entry-subtitle">Published in Orchard and Vine Magazine on: <?php the_time('F j, Y'); ?></h2>
<?php else: ?>
<h2 class="blog-entry-subtitle">Posted on: <?php the_time('F j, Y'); ?></h2>
<?php endif; ?>
GREAT! I love it. However once you click on one of those posts to read more it converts the blog-entry-subtitle back to the "Posted on:" as now you aren't in the specific category anymore.
I would like the "Published in Orchard and Vine Magazine on:" instead of "Posted on:" for all posts with a category and tag of Legal Libation Columns. So then I try this.
<?php if (is_category('Legal Libation Columns') && has_tag('Legal Libation Columns')); ?>
<h2 class="blog-entry-subtitle">Published in Orchard and Vine Magazine on: <?php the_time('F j, Y'); ?></h2>
<?php else: ?>
<h2 class="blog-entry-subtitle">Posted on: <?php the_time('F j, Y'); ?></h2>
<?php endif; ?>
However I get a weird white screen of nothing?
How do I have it so that any post with the tag Legal Libation Columns always has that specific blog-entry-subtitle without giving me an error?
||
should be&&
;
is in the end. There should be:
. This is causing white screen of death.<?php if (is_category('Legal Libation Columns') && has_tag('Legal Libation Columns')): ?>