- ";
$LI=array();
foreach($parent['posts'] as $p) {
$xp=(array)$p;
$pl=get_permalink($p);
$c=preg_replace("/(\.jpe?g).*/si",'$1',$xp['post_content']);
$c=preg_replace("/.*https:\/\//si",'https://',$c);
$LI[$xp['post_date']]= "
- $xp[post_title]\n"; } ksort($LI); foreach($LI as $l){ $content.=$l; } $content.= "
$content='';
$portfolio = get_post();
$portfolio_children = get_children($portfolio->ID);
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'post_parent' => $portfolio->ID,
'order' => 'ASC',
'orderby' => 'menu_order'
);
$parent = new WP_Query( $args );
$parent=(array)$parent;
$content.= "






