WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Using placeholder like php shortcodes (2 posts)

  1. M Szatkowski
    Member
    Posted 1 year ago #

    Is it possible to use placeholders just like shortcodes?
    Like:

    <?php echo do_shortcode('[#_CATEGORYNEXTEVENTS]'); ?>

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    you can try something like this

    global $post, $wp_query;
    $EM_Category = em_get_category($wp_query->queried_object->term_id);
    echo $EM_Category->output('#_CATEGORYNEXTEVENTS');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.