Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
the only way to crunch the shortcode is to set in my page.php the function echo do_shortcode( '[contact-form-7 id="12" title="Contact form 1"]' ); it's the first time I get this kind of error
Sorry the right name is loop-single.php, I've created this in the theme/theme_name/ folder. I've tried to leave the gallery but if I leave it in the post form It's printed as the default wordpress gallery. As you see I manually get the media from $attachments = get_posts($args); and with a foreach statement and I print the gallery independently. So If I leave the original gallery I see the gallery twice, the default version and the customized one. How can I cutomize the default gallery?