Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5965597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:39:18+00:00 2026-05-22T19:39:18+00:00

I’ve been trying to put H5 and H6 tags to the recent posts using

  • 0

I’ve been trying to put H5 and H6 tags to the recent posts using query post, but
Wordpress doesn’t want to apply them correctly. It seems to apply them only to the first result, but on the rest, it just discards the second item of the list.

I’m going to paste the sidebar.php and some lines of the style.css. I will greatly appreciate your help. I’ve been fiddling with this for three hours now with no luck.

http://www.estamosobservando.com

sidebar.php

 <div id="widget"> 

        <h3>Latest posts</h3>   

                <?php query_posts('posts_per_page=3'); if (have_posts()) : while (have_posts()) : the_post();?>

                <ul>

                <li><h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5></li>
                <li><h6><?php the_date(); ?></h6></li>             

                </ul>

                <?php endwhile; endif; ?>  

style.css

#widget { padding: 133px 0px 0px 20px; text-align:left; }

#widget ul {margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; list-style-type:none; list-style-image: none; text-decoration: none;}

#widget li { margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; list-style-type:none; list-style-image: none; text-decoration: none; }

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:39:19+00:00Added an answer on May 22, 2026 at 7:39 pm

    All three of your latest posts are from today, May 30.

    From the WordPress docs:

    SPECIAL NOTE: When there are multiple
    posts on a page published under the
    SAME DAY, the_date() only displays the
    date for the first post (that is, the
    first instance of the_date()). To
    repeat the date for posts published
    under the same day, you should use the
    Template Tag the_time() or
    get_the_date() (since 3.0) with a
    date-specific format string.

    Alternatively, you could succumb to how the_date works, and modify your layout a little to effectively have the date as a heading that encompasses all posts for that date.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a French site that I want to parse, but am running into
I want to construct a data frame in an Rcpp function, but when I
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.