• Resolved randallishino

    (@randallishino)


    Hi, I’m trying to use the inline form shortcode to put into the popup maker plugin but I can’t get anything to show.

    I’ve tried this below adding in functions.php and using this shortcode with it [xoo_el_form_in_page]

    function xoo_el_form_in_page(){

    //Return if user is logged in
    if( is_user_logged_in() ) return;

    //Wrap it outside container to differentiate it from the popup markup
    $html = ‘<div class=”xoo-el-inpage-form”>’;
    ob_start();
    wc_get_template(‘xoo-el-popup.php’,array(),”,XOO_EL_PATH.’/templates/’);
    $html .= ob_get_clean();
    $html .= ‘</div>’;
    return $html;

    }
    add_shortcode(‘xoo_el_form_in_page’,’xoo_el_form_in_page’);

    I’ve also tried [xoo_el_inline_form active=”login”] but no luck.

Viewing 1 replies (of 1 total)
  • Plugin Contributor xootixsupport

    (@xootixsupport)

    Hi @randallishino

    For adding shortcodes to PHP , you need to use wordpress in built function
    echo do_shortcode( '[xoo_el_inline_form active=”login”]' );

Viewing 1 replies (of 1 total)
  • The topic ‘can’t get inline form to work’ is closed to new replies.