• Hello.

    I just want to call shortcode with ID on the page using url parameter.

    I’m using total portfolio, WP User forntend API, Insert PHP API.

    My purpose is that each portfolio call each WPUF form through a page using url parameter.

    The below is included in the textbox of a page.

    ———————————————
    [insert_php]

    $page_id = $_GET[‘pageinfo’];

    echo $page_id;

    echo do_shortcode(‘[wpuf_form id=$page_id]’);

    [/insert_php]
    ——————————————

    When the portfolio page provide link “https://abc.com//?p=100&pageinfo=77”,
    I want that a page(p=100) call the WPUF Form using shortcode [wpuf_form id=77].

    but it did’t.

    I don’t know what the problem is.
    Until “echo $page_id;” line is working, so I doubt “id=$page_id”.

    i’m appreciating your helps.

    thanks.

  • The topic ‘How to call Shortcode with ID using url parameter in php’ is closed to new replies.