Тест колумни

ВИДЕО

[insert_php]

$args = array( ‘posts_per_page’ => 6, ‘offset’=> 1, ‘category’ => 13 );

$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post ); if ( has_post_format( ‘aside’ )) { get_template_part( ‘content’, ‘aside’ ); }

elseif ( has_post_format( ‘image’ )) { get_template_part( ‘content’, ‘image’ ); }

elseif ( has_post_format( ‘quote’ )) { get_template_part( ‘content’, ‘quote’ ); }

elseif ( has_post_format( ‘link’ )) { get_template_part( ‘content’, ‘link’ ); }

else

get_template_part( ‘content’, get_post_format() );
endforeach;
wp_reset_postdata();
[/insert_php]

Share Button

Напишете коментар

Вашата адреса за е-пошта нема да биде објавена.

This site uses Akismet to reduce spam. Learn how your comment data is processed.