romanonly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: the_date() is not appearing on my posts.greenshady and doc4,
Thank you so much for your help, switching to the_time() solved the problem and the date is appearing perfectly now!
Awesome!
Forum: Fixing WordPress
In reply to: the_date() is not appearing on my posts.doc4 and ryans149,
I tried adding the if and endif statements but I’m still not getting a date. This is actually the SECOND loop in the document, being exactly identical, other than calling a different category and using slightly different formatting. Here’s what the code looks like right now including BOTH of the loops:
<div class="news"> <div class="divtitle"> <h2>News</h2> </div> <br /> <?php query_posts('category_name=News&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()): the_post(); ?> <h3><?php the_title(); ?></h3> <div style="font-family: tahoma, geneva; color: #ffffff; font-size: 15px; margin-left: 20px;"> <?php the_content(); ?> </div> <hr width=95%" size="1" color="#ffffff" align="center"> <p style="font-family: tahoma, geneva; color: #ffffff; font-size: 12px; margin-left: 20px;">Posted by <?php the_author(); ?> on <?php the_date(); ?>.</p> <?php endwhile; endif ?> </div> <div class="featphoto"> <div class="divtitle"> <h2>Featured Photo</h2> </div> <?php query_posts('category_name=featphoto&showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()): the_post(); ?> <h2><?php the_title(); ?></h2> <div style="text-align: center;"> <?php the_content(); ?> </div> <p style="font-family: tahoma, geneva; color: #ffffff; font-size: 10px; margin-left: 20px;">Uploaded by <?php the_author(); ?> on <?php the_date(); ?>.</p> <?php endwhile; endif; ?> </div>
The date appears properly in the first loop, but the second loop simply inserts a blank where the date should be.
Thanks for your help!
Forum: Fixing WordPress
In reply to: Formatting the_content() with CSSSwitched from using <p> to using <div> and it solved the problem. If anyone has ideas on how to make the <p> work feel free to post.
Forum: Themes and Templates
In reply to: Formatting the_content() with CSSSwitched from using a <p> to using a <div> and it solved the problem. If anyone knows how to make <p> work feel free to post.