Forum Replies Created

  • @hube2 Thanks for the answer! I was able to upload videos in the ACF Gallery without needing to set anything specific. The only difference is that while the native media library accepts my function for thumbnail generation (see screenshot 1), the ACF gallery won’t take the parameters as mentioned (see screenshot 2).

    As said, nothing has been set from my end to allow to upload video in the gallery

    Any idea why this could happen?


    Screenshot 1
    Screenshot 2

  • Sorry, I perhaps didn’t explain my problem properly.
    I want the content to be always shown, but remove the link if the link field is empty.

  • Hi,
    Is it possible to display different outputs/formats for the date?

    This snippet works great but I would like to show Year and Month separately.

    Is it possible?


  • Hello,
    I’m having a repeater working as an events list.

    I managed to sort them by date but, what I would like to achieve is that it only shows the year once if multiple events are happening in the same year.


    2020. Event 1
    2020. Event 2
    2020. Event 3
    2019. Event 4
    2018. Event 5
    2017. Event 6
    2017. Event 7
    2016. Event 8

    What I want:

    2020. Event 1
    Event 2
    Event 3
    2019. Event 4
    2018. Event 5
    2017. Event 6
    Event 7
    2016. Event 8

    Is this possible?
    I know that WordPress native date function shows it repeated years only once unless you echo them.

    Here’s my code:

                    $repeater = get_field('press');
                    $order = array();
                    foreach ($repeater as $i => $row) {
                        $order[$i] = strtotime($row['date']);
                    array_multisort($order, SORT_DESC, $repeater);
                    if ($repeater): ?>
    				<ol style="list-style-type:none;">
    				    <?php foreach ($repeater as $i => $row): ?>
    				        <?php echo $row['date']; ?> <a href="<?php echo
                    $row['link']; ?>" target="_blank"><?php echo $row['article']; ?>
    				<?php endforeach; ?>
    				<?php else:
                        echo '<p>No press yet!</p>';
                    endif; ?>
Viewing 5 posts - 1 through 5 (of 5 total)