Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- basic loop -->
- <?php if (have_posts()) : while (have_posts()) : the_post() ; ?>
- <h2>
- <?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?>
- </h2>
- <?php if ( testchildren() ) : ?>
- <h1 style="margin-top:6px; margin-bottom:12px;"><?php the_title(); ?></h1>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php endwhile; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement