A
A
Aberebk2016-02-19 00:08:00
PHP
Aberebk, 2016-02-19 00:08:00

How to display news in timeline format?

Please tell me the code or plugin for Wordpress, with which you can display the titles of blog posts for a specific Tag and a specific place, displaying the time and number of comments.
Example:
90e5680591a749528a1823597b0139a9.PNG
I shoveled a bunch of plugins, both from the Wordpress repositories and paid ones from Codecanyon, but did not find the necessary functionality...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-02-19
@dimasmagadan

the algorithm is something like this:

if(have_posts() ){
$section_date = '';
while(have_posts()){
the_post();
if($section_date != get_the_date() ){
echo get_the_date();
$section_date= get_the_date();
}
the_title();
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question