Support

Account

Home Forums Add-ons Repeater Field Display repeater fields as a dates on calendar

Helping

Display repeater fields as a dates on calendar

    • espirit

    • September 23, 2020 at 5:16 pm

    Greetings community!

    I am using date field as a repeater for each post. And can not find the way how to display selected dates as a calendar view inside of single post.

    Basically, I want to have separated calendar with selected dates for each published post. I already displayed repeater field values using the following code:

    // Check rows exists.
    if( have_rows('date') ):
    
        // Loop through rows.
        while( have_rows('date') ) : the_row();
    
            // Load sub field value.
            $sub_value = get_sub_field('datt');
            // Do something...
            echo $sub_value;
    
        // End loop.
        endwhile;
    
    // No value.
    else :
        // Do something...
    endif; 
    

    Where “date” is the name for repeater field and “datt” is the name for subfield. But I need to display them as a calendar.

    Thank you, any help is welcome.

    • espirit

    • September 24, 2020 at 7:06 pm

    Anyone, please ?

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.