Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="date">
- <?php
- $args = array( 'posts_per_page' => -1, 'order'=> 'ASC', 'orderby' => 'title' );
- $postslist = get_posts( $args );
- foreach ( $postslist as $post ) :
- setup_postdata( $post ); ?>
- <div class="date-wrap">
- <div class="date-text">
- <a href="<?php the_permalink(); ?>">
- <?php the_time( get_option( 'date_format' ) ); ?>
- </a>
- </div>
- <div class="title-text">
- <a href="<?php the_permalink(); ?>">
- <?php the_title(); ?>
- </a>
- </div>
- </div>
- <?php
- endforeach;
- wp_reset_postdata();
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement