Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content" class="content" role="main">
- <?php if( have_posts() ){ $args = array('post_type' => 'files', 'posts_per_archive_page' => 2); query_posts( $args );?>
- <ul class="files-list">
- <?php while( have_posts() ){ the_post(); ?>
- <li>
- Тут вывод произвольных полей и верстка.
- </li>
- <?php } /* конец while */ ?>
- </ul>
- <div class="navigation">
- <?php the_posts_pagination(); ?>
- </div>
- <?php
- wp_reset_query(); } // конец if
- else
- echo "<h4>Записей нет.</h4>"; ?>
Add Comment
Please, Sign In to add comment