WordPress.org

Ready to get started?Download WordPress

Forums

post_format meta box (3 posts)

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

  2. Ben Casey
    Member
    Posted 3 years ago #

    I am having a play around with these now, docs are Here

  3. Ben Casey
    Member
    Posted 3 years ago #

    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; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.