• Hello,guys
    I have installed a custom menu tab plugin. It can post anything with an editor. My purpose is showing the woocommerce order with pop up evaluation form. Yet, my code is not working. I cannot pop up the form as I don’t know why. I can do it by directly accessing my php document. Anyone can help me? I want to successfully have a pop up form in a custom tab.

    Photo :
    This is what I do

    But when I press the link, it did pop up.
    I want such effect :

    https://wordpress.org/plugins/ultimate-member/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lwl071083

    (@lwl071083)

    I want this result when I pressed the link(the code is ready but it does not work in custom tab)

    Thread Starter lwl071083

    (@lwl071083)

    https://s31.postimg.org/ewzxm2b4r/Screenshot_from_2016_07_18_11_45_58.png

    I guess whether it is shortcode problem… Here is my shortcode.

    function shortcode_my_orders( $atts ) {
        extract( shortcode_atts( array(
            'order_count' => -1
        ), $atts ) );
    
        ob_start();
        wc_get_template( 'myaccount/my-orders.php', array(
            'current_user'  => get_user_by( 'id', get_current_user_id() ),
            'order_count'   => $order_count
        ) );
        return ob_get_clean();
    }
    add_shortcode('my_orders', 'shortcode_my_orders');
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom menu tab problem’ is closed to new replies.