WPBakery Grid Builder

Hi I'm adding some custom shortcode to the grid builder using this instruction: https://wpbakery.atlassian.net/wiki/spaces/VC/pages/9633796/Adding+Custom+Shortcode+to+Grid+Builder

The problem I'm having is that {{ post_data:ID }} cannot be saved to a variable to later get the post and play with it as such:

function show_event_date() {
    $event = '{{post_data:ID}}';
    return tribe_get_start_date( $event, false );
}

The reason is that {{ post_data:ID }} returns a string. I've found that since these are template tags, like in smarty or angular, they inject values after the page has loaded. So PHP doesn't have a chance get value because everything happening on the client side.

Anyone else run into this problem or know of a workaround?

Comments

  • Hi,

    What you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:
    Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customisation services or checking out the great service providers on Envato Studio

    thanks
Sign In or Register to comment.