以下を使用して、子のタイトルとコンテンツを取得しています。各子には、コンテンツ内のコンテンツ エディターにギャラリーとショート コードがありますが、ギャラリーのみを取得し、ショートコードは取得しません。ギャラリーの後にコンテンツに段落を追加しようとしたのですが、それは表示されません。
<?php $pages = get_pages('child_of='.$page->ID.'&sort_order=asc&number=3&sort_column=menu_order&parent='.$page->ID);
foreach($pages as $page) {
$content = $page->post_content;
$content = apply_filters('the_content', $content);
?>
<div class="span4">
<h2><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h2>
<?php echo $content ?>
</div>
$content = apply_filters('the_content', $content);
基本的にコンテンツの一部を取り除いていると思います。ショートコードが表示されない理由を教えてください。