php – How can I display all these movies in DESC order by modified?
Question
This is the wprdpress script theme i want to display the movies list in DESC order by Modified like when i update any post/movie manully and than the movie show in first page on 1st position
<?php
get_header();
doo_glossary('movies');
$sidebar = get_option('sidebar_position_archives','right');
$maxwidth = get_option('max_width','1200');
$maxwidth = ($maxwidth >= 1400) ? 'full' : 'normal';
echo '<div class="module"><div class="content full_width_layout">';
echo '<h1 class="heading-archive">'.__d('Movies').'</h1>';
echo '<header class="archive_post"><h2>'. __d('Recently added').'</h2></header>';
echo '<div id="archive-content" class="animation-2 items '.$maxwidth.'">';
doo_pagination();
if(have_posts()){
while(have_posts()){
the_post();
get_template_part('inc/parts/item');
}
}
echo '</div>';
doo_pagination();
echo '</div>';
echo '</div>';
get_footer();
0
4 weeks
2023-01-14T02:21:20-05:00
2023-01-14T02:21:20-05:00 0 Answers
0 views
0
Leave an answer