Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter eightfold

    (@eightfold)

    OK, I’m still looking for how to output quote and quote_source. I’ve been searching the file contents of the WP source code for hints, but have not managed to find anything. For others who run into the same problem my interim solution is to use add_theme_support( 'structured-post-formats' for everything but the quote format, for which i use add_theme_support( 'post-formats' and let WP generate the code. The code that is output follows the reasoning of this post, which I think is semantically fine.

    But, for anyone who might have an answer to my original question — how to output quote & quote_source — I’m still very eager to know.

    Thread Starter eightfold

    (@eightfold)

    To add on to Dominik’s suggestion, there’s also get_post_format_meta( $post_id ) if you’re trying to grab a particular field rather than the formatted post. get_post_format_meta() returns the array

    Thanks, nice to see it is possible! It seems this is where structured-post-formats in functions.php actually gets useful too.

    Sorry for the stupidity but I’m not sure I understand how to output the data looking at what you gave me though.
    <?php the_post_format_url(); ?> outputs what I want for the Link URL of the link and quote post format, but how I’m not sure how I should format the php tag for the other fields like quote and quote_source. <?php the_post_format_quote(); ?> does not work and I don’t understand the role of $post_id in your example.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)