• I have 3 editors working on articles from about 135 contributors. I have a page set up so the contributors can see when their articles will get published.

    https://global-writes.com/coming-soon

    The code for that page looks like this:

    <h3>Scheduled for Publication</h3>
    <?php query_posts('post_status=future&orderby=date&order=ASC'); ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <table><tr><td><?php the_post_thumbnail('thumbnail'); ?></td><td><h5><?php the_title(); ?></h5>By  <?php coauthors_posts_links(); ?> -- <?php the_time('j M Y') ?>&nbsp;&nbsp;<?php edit_post_link( __('Edit', 'wpzoom'), '', ''); ?><?php the_excerpt(); ?></td></tr></table>
    <?php endwhile;
    wp_reset_query(); ?>
    
    <?php endif; ?>
    <p>&nbsp;</p>
    <hr>
    <p>&nbsp;</p>
    <h3>Pending Review</h3>
    <?php query_posts('post_status=pending&orderby=date&order=ASC'); ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <table><tr><td><?php the_post_thumbnail('thumbnail'); ?></td><td><h5><?php the_title(); ?></h5>By  <?php coauthors_posts_links(); ?> -- <?php the_time('j M Y') ?>&nbsp;&nbsp;<?php edit_post_link( __('Edit', 'wpzoom'), '', ''); ?><?php the_excerpt(); ?></td></tr></table>
    <?php endwhile;
    wp_reset_query(); ?>
    
    <?php endif; ?>

    For the “Pending” posts I’d like to sort them by time stamp from when the contributor clicked the “Submit for Review” button.

    Any idea how to call that time stamp?

    Thanks,
    Tim

  • The topic ‘Sort pending articles by "Submit for Review" date’ is closed to new replies.