• Resolved Martin Oviedo

    (@entreosos)


    My idea is that I can use the pods templates and at the same time design them with visual composer.
    For this I need the textarea that uses pods templates to be transformed into wp editor.
    For this, change the element-view_template.php file.
    This..
    <?php
    /**
    * Frontier Template code editor metabox
    */
    ?><textarea id=”content” name=”content”><?php if ( isset( $content ) ) {
    echo esc_textarea( $content );
    } ?></textarea>

    /// By This!!

    <?php
    /**
    * Frontier Template code editor metabox
    */
    wp_editor(
    esc_textarea( $content),
    ‘content’,
    array( ‘textarea_name’ => ‘content’ )
    )
    ?>

    I still do not get the expected results.
    That’s why I ask for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Pods Templates are inserted in 3 ways into your theme:

    1. inserted with a shortcode with the template= attribute
    2. Automatically displayed where the_content filter is used in your theme for single display posts or archive posts using Auto Templates; this is activated when editing your Pod on the ‘Auto Templates’ tab. You can change where your template is inserted (before, after or replacing the_content, or you can change the filter that is used.
    3. called with PHP using the template() function

    Since Pods Templates are a Post Type that is accessed within and controlled by our Pods Admin, you can’t really ‘move’ where the metabox goes or change the editor to be anything other than the code mirror editor since it doesn’t receive or accept any content other than html/css, shortcodes and magic tags.

    If you want to enhance our Pods Template editor, etc. I’d recommend heading over to our GitHub and opening a Feature Enhancement so you can work with our developers to see if what you’re trying to accomplish can be integrated with Pods.

    Thread Starter Martin Oviedo

    (@entreosos)

    Thanks Jim True, I will do it!

    Hey Martin,

    Were you able to get PODS templates to work with visual composer? This is the exact problem I’m having right now. I’d love to know how you solved it.

    @uchtmanfarms on Twitter

    Is there a way to do this if we are using Pods pages instead of wordpress pages?

    Plugin Contributor Jim True

    (@jimtrue)

    Pods Pages doesn’t have anything to do with WordPress Pages. Pods Pages are used to redirect URL strings to specific PHP or Pods Templates for the Advanced Content Types. It’s specifically for use when you use Advanced Content Types to make them ‘work’ within the WordPress structure.

    Also, please don’t jump onto tickets that are resolved. As I indicated above, if you folks want Visual Composer support, you need to create a Feature or Enhancement Request: https://github.com/pods-framework/pods/issues/new

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How make “templates” compatible with visual composer’ is closed to new replies.