• Resolved ceedoo

    (@ceedoo)


    I’m using a customer review plugin and need to be able to add the organizer in the the shortcode.

    To list event organizer name on the page I use:
    <?php printf(get_organizer_name());?>

    How can I include this in the following shortcode:

    [site_reviews assigned_organizer=””]

    I NEED SOMETHING LIKE:

    [site_reviews assigned_organizer=”<?php printf(get_organizer_name());?>”]

    Any help will be massively appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author Rita Kikani

    (@kikanirita)

    Hi ceedoo,

    For this kind of things in code, you need to create custom template at your theme side, then apply this shortcode in that custom template and use that tamplate on your page.

    please use this code in your template file.

    <?php /* Template Name: Test Template */ 
    
    get_header();
    
    do_shortcode('[site_reviews assigned_organizer="'.get_organizer_name(ORGANZIER_ID).'"]');
    
    get_footer();

    I hope this code will work for you.

    Thank You.

Viewing 1 replies (of 1 total)
  • The topic ‘How to include ‘get_organizer_name’ in the shortcode’ is closed to new replies.