php - WordPress the_date skipping at intervals inside a loop -


I have created a custom loop in WordPress and for some reason, the date is dropped at random intervals, even if the other

Any thoughts, because it's completely annoying me!

For example, a list of posts and when the date is missing:

p << li>
  • Date
  • Date
  • Date
  • No date
  • Date
  • No date
  • No date
  • < / Ol>

    This is the code, including all the loops:

      & lt ;? Php query_posts ('category_name = news & post_on_page = 10'); ? & Gt; & Lt ;? Php while (is_pos ()): the_post (); ? & Gt; & Lt; Articles & gt; & Lt; Div & gt; & Lt; P & gt; Published: & lt ;? Php the_date (); ? & Gt; & Lt; / P & gt; & Lt; H4 & gt; & Lt; One class = "news_title_link" href = " '/ wp-content / upload / 2010/06 / default-thumb.jpg '));}? & Gt; & Lt; / Div & gt; & Lt; / Article & gt; & Lt ;? Php timeline; ? & Gt; & Lt ;? Php endif ;? & Gt;  

    One possible reason may be that any dates with consecutive dates are published on all Not the same day as it is with a date that they all immediately follow.

    In your example, the second and third posts can be the date of the same publication, which can cause any third post to not be displayed on a date. Similarly, 7 to 10 positions can be given the date of the same publication, which does not display the last three posts.

    This, as far as I have experienced, how is this the_date () works

    • the_time ( and
    • after calling and after calling instead of using Calling Unset ($ previous day)

    Comments