WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Shorcodes works after the_content() call (2 posts)

  1. kpilars
    Member
    Posted 1 year ago #

    Hi guys,

    issue:

    homepage:
    [event 1 with date1! and time1!]

    [event 2 with date2 and time2]
    end of homepage

    Body of event2
    1) thumbnail
    2) date1! time1!
    3) the_content
    4) date2 time2
    5) eof

    both lines 2 and 4 have the same shortcode:
    <?php echo do_shortcode('<p>[event post_id="#_EVENTID"] @ #_LOCATIONLINK on #_EVENTDATES at #_EVENTTIMES[/event]</p>');?>

    why it gives good time and date after the content ? and before remembering times of previous one?
    how to solve this ?

    cheers

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

  2. kpilars
    Member
    Posted 1 year ago #

    Ok, i did it by adding line below in my single-event somewhere before first shortcode question about part of event information

    <?php $content=get_the_content_with_formatting(); ?>

    so, is still get information after content is processed but it could happening anywhere in file so ..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.