within my Genesis child theme I have two different post formats (not types!): Standard and Gallery.
When the user selects the Gallery he gets offered additional fields via the Advanced Custom Fields plugin. I know need to change the template of the Post format 'Gallery' in order to pull the data from the ACF plugin.
How can I do this with genesis?
I tried it with:
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'loop_helper' );
function loop_helper() {
if ( has_post_format( 'gallery' )) {
echo 'this is the gallery format';
} else {
genesis_standard_loop();
}
}
But this is not working as it just shows “this is the gallery format” and nothing else. I am looking for something like:
if ( has_post_format( 'gallery' )) {
get_template_part(‘content’,get_post_format());
} else {
show standard post
}
Does anybody have a solution for this?
Thanks!