';
global $post;
if ($atts['pageids']) {
$getposts=get_posts('numberposts=-1&post_type=any&orderby=menu_order&order=ASC&include='.$atts['pageids']);
} else {
$getposts=get_posts('numberposts=-1&orderby=menu_order&order=ASC&post_type=any&post_parent='.$post->ID);
}
foreach ($getposts as $post) {
setup_postdata($post);
$pix=get_featured_image('thumbnail');
?>
';
wp_reset_postdata();
return ob_get_clean();
}
add_shortcode( 'lista_podstron', 'lista_podstron' );
add_shortcode( 'button', 'msz_button' );
function msz_button($atts, $content=null) {
return ''.$content.'
';
}
?>ID);
$target='';
} else {
$addclass.=" but ";
}
?>
< class="" data-href="" >
2 [ids] => 28237,28236,28235,28234 [orderby] => post__in [include] => 28237,28236,28235,28234 )
$ids=explode(',',$attr['ids']);
if (!isset($attr['columns'])) $attr['columns']=3;
ob_start();
?>
$attr['ids'],'post_type' => 'attachment'));
// foreach($posts as $nr=>$imagePost) {
foreach ($ids as $nr=>$id) {
$imagePost=get_post($id);
// if (is_user_logged_in()) mszdebug($imagePost);
$pix=wp_get_attachment_image_src($imagePost->ID, wp_is_mobile() ? 'medium' : 'large');
if ($nr==0) $pix0=$pix;
?>