Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
virginiatod
ParticipantI get this error: Google Maps was not loaded correctly. For technical details see the JavaScript console.
virginiatod
ParticipantI tried creating a shortcode in the functions.php file:
add_shortcode('string2date', 'string2date_func'); function string2date_func($atts, $content){ $atts = shortcode_atts( array( 'slug' => '_EventStartDate', 'format' => 'M. j', ), $atts); $res = ''; if($atts['slug']){ $str = get_post_meta(get_the_ID(), $atts['slug'], true); $time_stamp = strtotime($str); $res = date($atts['format'], $time_stamp); } return $res; }and calling it this way:
[string2date slug="_EventStartDate" format="M. j"]But it returns me a wrong date.
Any suggestions?
virginiatod
ParticipantI can’t make this work. I need the date to be shown in some other way
virginiatod
ParticipantI want to alter the shortcode list view… I need to see the most recent events first…
September 26, 2018 at 7:13 am in reply to: Issue with [tribe_formatted_event_date] shortcode #1631005virginiatod
ParticipantThank you, now it’s working, the problem is that I need the post id to be dynamic, and I can’t seem to make it work by using %post_id%…
virginiatod
ParticipantSure, you’re right! Here’s the shortcode I’m using:
[tribe_events view=”list” category=”cat1″ date=”2006-01″]
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
