virginiatod

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Google Maps not working on single events #1637150
    virginiatod
    Participant

    I get this error: Google Maps was not loaded correctly. For technical details see the JavaScript console.

    in reply to: changing the _EventStartDate format #1636149
    virginiatod
    Participant

    I 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?

    in reply to: changing the _EventStartDate format #1635320
    virginiatod
    Participant

    I can’t make this work. I need the date to be shown in some other way

    in reply to: asc/desc in shortcode view #1634056
    virginiatod
    Participant

    I want to alter the shortcode list view… I need to see the most recent events first…

    in reply to: Issue with [tribe_formatted_event_date] shortcode #1631005
    virginiatod
    Participant

    Thank 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%

    in reply to: asc/desc in shortcode view #1631003
    virginiatod
    Participant

    Sure, you’re right! Here’s the shortcode I’m using:

    [tribe_events view=”list” category=”cat1″ date=”2006-01″]

Viewing 6 posts - 1 through 6 (of 6 total)