New answers tagged

1

Make sure that you're not just calling these functions within functions.php, but calling them at the right time with add_action(). Try the following: // in your Child Theme's functions.php // Use the after_setup_theme hook with a priority of 11 to load after the // parent theme, which will fire on the default priority of 10 add_action( '...


1

It's import to set the priority for your after_setup_theme higher than your parent theme. The default priority is 10. Using the twentysixteen as example, use priority 11 on child themes' 'after_setup_theme' action. Exemple below: function twentysixteen_child_setup() { add_theme_support( 'post-formats', array( 'video', ) ); } add_action( '...


3

Since you need a specific HTML structure let's keep things clean and do what The Codex suggests - break it into template parts based on the post format. Let's create a subfolder in your theme to store these post formats, maybe POST_TYPE_SLUG-formats so it's clear what is in this folder ( Replace the uppercase with your actual post type slug ). Then we can ...



Top 50 recent answers are included