WordPress.org

Forums

Press, News, Events
Display event location & date (3 posts)

  1. ewire
    Member
    Posted 2 years ago #

    I have the plugin installed & working, but I can't get the Event options (location, date, time) to appear on the page.

    Also, is there a way to call this information via PHP?

    http://wordpress.org/extend/plugins/press-news-events/

  2. ewire
    Member
    Posted 2 years ago #

    This seems to have worked:

    $meta = get_post_custom($post->ID);
    extract(array(
    	'location' => $meta['_location'][0],
    	'starts' => $meta['_starts'][0],
    	'ends' => $meta['_ends'][0],
    	'all_day' => $meta['_all_day'][0],
    ));
    if ($starts) echo Press_News_Events::pretty_date_range($starts, $ends, $all_day);
  3. rajbir4all
    Member
    Posted 1 year ago #

    hello,

    where exactly i have to add this code?

    Please suggest.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Press, News, Events
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.