pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Pods conflict with Divi theme #2441

Closed jeckton closed 9 years ago

jeckton commented 9 years ago

I've got an implementation that uses pods pages and corresponding templates, and one of the templates includes a table that invokes a shortcode for WP eStore. It looks like this:

nextStepIcon [wp_eStore_add_to_cart_custom_button id=24 button=http://hi.medicalaccessusa.com/wp-content/uploads/2014/04/For-New-Clients.jpg]

This works just fine in another implementation using the Genesis theme, but it the Divi theme the short code is not being evaluated and is instead just displayed on the screen like text. What it should be doing is displaying the custom button code and adding the product to a shopping cart.

I can use this same shortcode in a "normal" wordpress page on this site and it works fine. It seems to me that there is a library that is not being evaluated when I use a Pods page in a site with the Divi theme.

Shelob9 commented 9 years ago

By default, this is not something that should work. Are you calling this template using the Pods shortcode? If so, you can define the constant PODS_SHORTCODE_ALLOW_SUB_SHORTCODES true, and in the shortcode, it self add shortcodes="1".

jeckton commented 9 years ago

Ok, as much as I'd like to play around with it to make it work, if this is "not something that should work" I'm going to try a different path. I don't want a maintenance problem as the various plugins are upgraded. I'll redesign so as to separate the pod from the shopping cart. Thanks for looking into it!