Gallery shortcode not working with custom post type
-
Hi!
I do have a problem with Qtranslate X and Gallery shortcode in custom post template.To keep the problem clean and simple – i have custom post type, showing nicely in loop. All stuff like it has to be. The content is displayed with “the_content()”; Gallery is defined as shortcode in content like [gallery id="..."].
(1) I turn OFF Qtranslate X and remove all language tags in content and title.
My post displays fine. Gallery is working nicely.
Plus i do get results by quering attachments by get_children()(2) I turn ON Qtranslate X and the gallery shortcode is gone. Hardcoded do_shortcode(‘all mygallery shortcode on here’) returns nothing. I have no results by quering get_children().
What can be wrong with this plugin logic and how can i fix it?
- The topic ‘Gallery shortcode not working with custom post type’ is closed to new replies.