Hi there,
If shortcodes work in your custom post type at all, there’s no reason GDE shouldn’t work out of box in that situation. What problem are you having exactly? Do you see an error, or just the download link, or nothing at all?
Thanks,
Kevin
Hi Kevin,
Thanks for your reply. I’m using multi site which works without a problem. Post and Pages shows GDE perfectly. But as soon as I add a “custom post”, I see only the shortcode (in the front- and backend). Looks like it’s not triggered for a custom post type…
Thanks!
Johan
PS: if I find the solution, I will let you know
Johan,
I haven’t used custom post types, but in order to use the shortcode in other areas that aren’t shortcode-aware the do_shortcode function sometimes works. May or may not apply to your situation.
Let me know what you find out.
Kevin
Hi Kevin,
I found the solution, the problem was not on your plugin. I did something wrong on my template.
I wanted to echo my content of a post, which I did with this:
echo get_post()->post_content;
I found out that this is just the content, but you need to “apply a filter” over the content to get the plugin content doing his thing… so I did…
apply_filters('the_content',get_post()->post_content);
and now it runs perfectly! So thanks for your fast feedback! And I hope other developers can use this small piece of information 🙂
Johan
Johan,
Thanks for your work on this and for reporting it here. Should be useful in case anyone else encounters this!
Kevin