Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $wp_query = new WP_Query( array(
- 'post_type' => 'person', // тип поста
- 'post_status' => 'publish',
- 'paged' => $paged,
- 'posts_per_page' => 99, // кол-во постов на странице ( -1 без ограничений)
- 'ignore_sticky_posts' => 1,
- 'order' => 'ASC', // сортировка
- 'orderby' => 'menu_order', // сортировка
- ) );
- if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
- ?>
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <h2 class="entry-post"><?= get_post_meta( get_the_ID(), 'person_post', true ) ?></h2>
- <?php the_content(); ?>
- <?php endwhile; endif; wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement