I've been trying to get post format to work for a while now, and for some reasons it is still not working the way it should.
I am creating a custom theme based on HTML5 Blank theme.
First thing I did was to add post_formats to functions.php
function add_post_formats() {
add_theme_support( 'post-formats', array( 'gallery', 'quote', 'video', 'aside', 'image', 'link', 'audio' ) );}
Post formats are now called in wp-admin and I can see the box for choosing the post_format in "Add new post". I then added this code to my loop.php to set the post format to a specific post
<?php if (have_posts()): while (have_posts()) : the_post(); if(!get_post_format()) {
get_template_part('format', 'standard');
} else {
get_template_part('format', get_post_format());
} ?>
But something is still missing because each post has a format attached to it, but It does not change anything on the display. For example format-video or format-links looks exactly the same as a standard format. In other words, embedded videos (for ex.) are not displayed on my article home page even though the post format is set and the video url is embedded in the content.
I am missing something, or doing someting wrong, and I've been struggling with this for hours, even though I read the codex again and again. Could anyone tell me what am I doing wrong ?