need WP plugin to sort posts by date

Status
Not open for further replies.

Mutikasa

Active Member
314
2011
36
0
I have porn tube site and want to sort videos like on xhamster.
DATE
video video video
video video video

DATE
video video video
video video video
.
.
.
.

is there such plugin and what is it called?
 
6 comments
Sort or you want Group post by date?


January 17, 2013
video video video
video video video

January 16, 2013
video video video
video video video

January 15, 2013
video video video
video video video

If you want group post like on xhamster so try this
Code:
the_date('[COLOR="MediumTurquoise"]date formatting[/COLOR]', '[COLOR="Purple"]stuff before the date[/COLOR]', '[COLOR="Orange"]stuff after the date[/COLOR]')

Or just put this in your loop
Code:
<?php the_date('', '<p class="the_date"><span>', '</span></p>'); ?>


example
Code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    		[COLOR="Orange"]<?php the_date('', '<p class="the_date"><span>', '</span></p>'); ?>[/COLOR]
 
Last edited:
I was just reading when u posted this, thanks man. so key is in the the_date().
I still have to figure out how to divide the days because right now it looks like this:
January 17
video video video
video video January 16 video
video video video
January 15 video video video

I guess I need it to put in <div> or something

@cyber-cliff you helped man, thanks

@ sonuyos I will not do that right now, but I can tell you it's similar to
Code:
cumtwice.net
. I use the same theme, it is free wordpress tube theme
 
Last edited:
good point!
Now it looks like this:
Januray 17
video video video
video video

January 16
video
video video video

but that's the minor issue right now which needs to deal with the counter, thanks man
 
Status
Not open for further replies.
Back
Top