[Resolved] the_date not displaying correctly
I have the following code as part of The Loop:
// show the date of the posts $html .= the_date('l j F','<h2 style="margin-bottom:10px!important">','</h2><hr style="height:1px!important">'); // make post container and show post title $html .= ' <div id="post-' .get_the_ID().'" style="margin-bottom:0px!important"> <p style="margin:0px">' .get_the_date('H:i'). ' | <a href="#">' .get_the_title(). '</a></p> <div id="' .get_the_ID().'" class="post-content" style="display:none">';
If the posts are of more then one day, the days will all show above the posts. I don’t understand how this happens. I do need the_date function because the_time and get_the_date return the day as many times as there are posts on that day. However, if I change the_post to any of those, the text is displayed correctly. What am I doing wrong? Why do the days all appear on the top of my page (see http://www.artikel104.nl/wordpress/).
- The topic ‘[Resolved] the_date not displaying correctly’ is closed to new replies.