• I noticed a new meta box post_format in edit media. I was just curious if there are any docs or explanation yet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am having a play around with these now, docs are Here

    Should Anyone else be interested, Can query for specific formats like so:

    <?php
    	$postargs = array(
    		'taxonomy' => 'post_format',
    		'term' => 'post-format-aside'
    	);
    	$test_posts = new WP_Query($postargs);
    	if ( $test_posts->have_posts() ): while ( $test_posts->have_posts() ) : $test_posts->the_post(); ?>
    	<h2><?php the_title(); ?></h2>
    	<?php the_content(); ?>
    <?php endwhile; endif; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post_format meta box’ is closed to new replies.