Change standard post format metabox

The problem you are having here is that standard is not a post format. standard is just assigned to posts that does not have a post format assigned to it. You can also check in your db in wp_terms, there is no post-format-standard term. You can also do the following to print out a list … Read more

Category template not displaying all post formats

Reading the codex on get_template_part and get_post_format will help you a lot here. It’s hard to say for sure without knowing what files are in your theme but get_template_part( ‘content’, get_post_format() ); is essentially saying use the template named content-format.php, where format is one of image, video, gallery etc. One of a few things is … Read more

Style post formats differently on the home page

Ok, your theme is already set up to use different post formats, so in your case you would just need to do the following: Change the line in content-aside.php that reads the_content(‘Weiterlesen’); To read the_excerpt(); Change just that one line, save your changes, and it should work how you want. the_content() echos the post content … Read more

Post formats and template hierarchy

It is easy to make this work if your theme don’t support post formats Create a child theme add_theme_support for post formats Remove the loop from your template files and add replace it with get_template_part( ‘content’, get_post_format() );. Your template should look like this if ( have_posts() ) { // <- Not necessary in single.php … Read more

How to treat post formats?

If you are developing your own theme (as you have indicated in your question), depending on the level of coding you want to get into, you are probably better off using one. Having said that it is certainly possible to do so without them, but this is what you’re going to have to look at: … Read more

Post Format problem

What about add else { after get_template_part( ‘template-parts/content’, ‘video’); }? EDIT (1) : <?php /** * The template for displaying single posts. * * @package SN */ get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php if( has_post_format(‘video’)) { get_template_part( ‘template-parts/content’, ‘video’); }else{ ?> <div id=”content-wrapper”> <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> … Read more