category.php or archive.php mostlikely
Thank you. Archive.php works.
This leads me to the next question. Currently on all pages it is:
title of post
date
post
Next to the date, I would like to have “Posted on:” so that it reads
Posted on: May 21
Is there a way to change this in the coding?
find the date code and add your words
you have something like <?php the_time('m d'); ?>
just add Posted on in front of that
Posted on: <?php the_time('m d'); ?>
(the “m d” stuff I made up cuz I am lazy, your letters will be different, its no matter…also you may have the_time or the_date, same advice applies)
That works, but the “Posted on” appears two lines about the date. I would like it in the same line, directly in front of the date.
I’d need to see the line of code then, plus a few lines above and below
Thanks for your help! Here is the code:
<div class=”ind-post”>
<h1>” title=”<?php printf(__(“Permanent Link to %s”, “magazine-basic”), the_title_attribute(‘echo=0’)); ?>”><?php the_title(); ?></h1>
<div class=”meta”>
<?php if(get_option(‘uwc_dates_index’) == ‘on’) {echo ‘<div class=”date”>’; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>
<?php if(get_option(‘uwc_authors_index’) == ‘off’) { _e(“By”, “magazine-basic”); echo ‘ ‘; the_author_posts_link(); } ?>
</div>
awww crap….another one of the complicated themes…
where did you add your text?
<?php if(get_option('uwc_dates_index') == 'on') {echo '<div class="date">'; echo 'Posted on:' the_time(get_option('date_format')); echo '</div>'; } ?>
Something like that may work… with an echo? I’m just at the edge of my knowledge here…..
Thanks! That worked. I need to put a ; after ‘Posted on: ‘ but other than that it worked. So the final is:
<?php if(get_option(‘uwc_dates_index’) == ‘on’) {echo ‘<div class=”date”>’; echo ‘Posted on:’ ; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>