Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Patte

    (@infosion)

    Supercool, thanks for your help!
    Now I can use Simplelightbox without restrictions – really great!

    Thread Starter Patte

    (@infosion)

    Awesome that you took the time to do this. Unfortunately, I will not get to test this until next week because of my vacation.

    Thread Starter Patte

    (@infosion)

    Thanks for the clarification, then I understand the whole thing a little better now 😉 The Internet forgets nothing – and Google had brought me there on the wrong track. No problem.

    Since I want to list every instance of the repeating event – doesn’t the meta_query have to run better over date than over the start_date?

    After all, the new post meta ‘start_date’ is only present once – but my event repeats twice in my example, which shows up in the rrule array.

    [date] => 2023-05-11
     [date] => 2023-05-12 

    How do I get each of these [date] values into the post meta to run the meta_query after that key?

    After all, I want to display each of the dates. Or am I still not understanding something here…. ?

    Thanks again for your help!

    Array ( [rrule] => FREQ=DAILY;COUNT=2;DTSTART=20230511T000000;INTERVAL=1 [start_date] => 20230511 [start_time] => 00:00:00 [frequency] => DAILY [interval] => 1 [weekdays] => Array ( ) [monthdays] => Array ( ) [months] => Array ( ) [monthly_by] => monthdays [bysetpos] => Array ( ) [byweekday] => Array ( ) [end_type] => count [end_date] => 20230512 [occurrence_count] => 2 [dates_collection] => Array ( [0] => DateTime Object ( [date] => 2023-05-11 00:00:00.000000 [timezone_type] => 3 [timezone] => UTC ) [1] => DateTime Object ( [date] => 2023-05-12 00:00:00.000000 [timezone_type] => 3 [timezone] => UTC ) ) [text] => täglich 2 Mal )
    Thread Starter Patte

    (@infosion)

    Hi Marc,

    very nice of you to take the time to answer my question.

    For my example. I have a custom post type ‘events’ and use ACF RRule Field to assign multiple (recurring) days to an event.

    So I thought your WP_Query example I posted above would do just that. In one of your posts I understood that ACF RRule Field automatically sets start_date and end_date. Or not?

    Do you perhaps have a specific example that could help me here?

    • This reply was modified 3 years ago by Patte.
    Thread Starter Patte

    (@infosion)

    Hey Elio,

    works perfect – thanks for the great support!

    Patrick

    Thread Starter Patte

    (@infosion)

    Hey Elio,

    thanks much for your help! Works like a charm.

    Is there also a way to disable those inline scripts? I would use them only on specific pages.

    Thanks again!

    Patrick

    Thread Starter Patte

    (@infosion)

    Ah, and
    /registration/registration*
    😉

    Thread Starter Patte

    (@infosion)

    Hey Corey,
    I am struggeling with another regular expression to exclude a path that contains or begins with “registration”.

    In addition to the above
    /login/
    /contact/
    /client-section/*

    I would like to add
    *registration* (just a string within the path) or
    /registration* (a page slug that beginis with “registration”)

    Thanks for your help!

    This is not a single page but multiple registration pages with different slugs.

    Thread Starter Patte

    (@infosion)

    Hey Corey,
    very nice, thank you very much!
    This is exactly what I was looking for!

Viewing 9 replies - 1 through 9 (of 9 total)