Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'post_parent' => $post->ID,
- 'post_type' => 'page',
- 'post_status' => 'publish',
- 'posts_per_page' => 5
- );
- $postslist = get_posts($args);
- foreach ($postslist as $post) :
- setup_postdata($post);
- ?>
- <div class="portfolio_box">
- <div>
- <h2 ><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail');; ?> <?php the_title(); ?></a></h2>
- </div>
- <div class="indexexcerpt">
- <?php the_excerpt(); ?> <div style="text-align:right">[ <a href="<?php the_permalink(); ?>">Далее</a> ]</div>
- </div>
- <div class="divider"> </div>
- </div>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement