3 Added more informative information
source | link

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 Posted on: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 ONLYall posts with a category and tag of Legal Libation Columns. However my site breaks whenSo then I implement the code belowtry 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; ?>

I knowHowever I am placing it in the right file (content-single.php) because beforeget a weird white screen of nothing? enter image description here

How do I put the || has_tag('Legal Libation Columns')); ?> sectionhave it worked fine. But once you clicked on the specificso that any post to read more it convertedwith the tag Legal Libation Columns always has that specific blog-entry-subtitle back to the Posted on: as now you aren't in the specific category anymore. What am I doing wrong that it breaks the sitewithout giving me an error?

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts on my wordpress website. I'm hoping to "Published in Orchard and Vine Magazine on:" instead of Posted on: for ONLY posts with a category and tag of Legal Libation Columns. However my site breaks when I implement the code below.

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

I know I am placing it in the right file (content-single.php) because before I put the || has_tag('Legal Libation Columns')); ?> section it worked fine. But once you clicked on the specific post to read more it converted the blog-entry-subtitle back to the Posted on: as now you aren't in the specific category anymore. What am I doing wrong that it breaks the site?

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? enter image description here

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?

2 Proper formatting
source | link

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts on my wordpress website. I'm hoping to "Published in Orchard and Vine Magazine on:" instead of "Posted on:"Posted on: for ONLY posts with a category and tag of Legal Libation Columns. However my site breaks when I implement the code below.

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

I know I am placing it in the right file (content-single.php) because before I put the || has_tag('Legal Libation Columns')); ?>|| has_tag('Legal Libation Columns')); ?> section it worked fine. But once you clicked on the specific post to read more it converted the blog-entry-subtitle back to the "Posted on:"Posted on: as now you aren't in the specific category anymore. What am I doing wrong that it breaks the site?

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts on my wordpress website. I'm hoping to "Published in Orchard and Vine Magazine on:" instead of "Posted on:" for ONLY posts with a category and tag of Legal Libation Columns. However my site breaks when I implement the code below.

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

I know I am placing it in the right file (content-single.php) because before I put the || has_tag('Legal Libation Columns')); ?> section it worked fine. But once you clicked on the specific post to read more it converted the blog-entry-subtitle back to the "Posted on:" as now you aren't in the specific category anymore. What am I doing wrong that it breaks the site?

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts on my wordpress website. I'm hoping to "Published in Orchard and Vine Magazine on:" instead of Posted on: for ONLY posts with a category and tag of Legal Libation Columns. However my site breaks when I implement the code below.

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

I know I am placing it in the right file (content-single.php) because before I put the || has_tag('Legal Libation Columns')); ?> section it worked fine. But once you clicked on the specific post to read more it converted the blog-entry-subtitle back to the Posted on: as now you aren't in the specific category anymore. What am I doing wrong that it breaks the site?

1
source | link

Conditional category & tag statement

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts on my wordpress website. I'm hoping to "Published in Orchard and Vine Magazine on:" instead of "Posted on:" for ONLY posts with a category and tag of Legal Libation Columns. However my site breaks when I implement the code below.

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

I know I am placing it in the right file (content-single.php) because before I put the || has_tag('Legal Libation Columns')); ?> section it worked fine. But once you clicked on the specific post to read more it converted the blog-entry-subtitle back to the "Posted on:" as now you aren't in the specific category anymore. What am I doing wrong that it breaks the site?