Hi,
i would have the timestamp of "Veranstaltung" sorted, to the next date from today is first then ascending .
thx - alex
Minesh
Supporter
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
Can you please configure date values that belongs to repeating field group and tell me what post you want to display first?
Hi Minesh, what do you mean? the correct date values are in $partone in foreach-loop.
And i would post-id 11231 show as first slide.
thx - alex
Minesh
Supporter
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
The thing is that the plugin Post type order was overriding the order.
To override the order - I've changed the following line of code from:
add_filter( 'wpv_filter_query', 'func_adjust_slider_posts_query', 10, 3);
To:
add_filter( 'wpv_filter_query', 'func_adjust_slider_posts_query', 999, 3);
Can you please confirm you are getting the expected results now.
hmm - no it does not take affect, or?
What does this do? ->
Minesh
Supporter
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
Here you can find the info what function does:
=> versteckter Link
I can see its working as expected: versteckter Link
Please remove the cache or do a hard refresh. I can see the first record as: postid===11231
hey - no - last slide is id 11238.
But can we not take the timestamp in array where is id, too? maybe as key - and then we sort from this key?
thx - alex
Minesh
Supporter
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
Its doing that only. Please - support is not a place to learn the things. You must try PHP course or WordPress course somewhere. And I already shown you how the custom code is added and modified and where it's been added. If you would like to modify it you can do it as per you will as custom code is not part of our support and its beyond the scope of our support policy but I wanted to offer you bit extra mile help.
As shared before - if you need custom programming for your project you are welcome to contact any of our certified partners:
Hi Minesh - of course, i know that, sorry - i thought i can ask you about this.
My Thing was: why does toolset not can put it into Parent.. - i think this is indispensable.
And i asked you about a function to correct this.
Now i think i give the CPT fields like date01, date02 direct, without rfg.
thx a lot - alex
Minesh
Supporter
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
There are certain limitations and in your case as the date field is belongs to repeating field group, we will require a view to display the repeating field group fields. Internally repeating field groups are managed as One to Many post relationship and repeating field group items will be child of current post.
But I think I already shared a solution with you it's up to you if you want to keep using the solution I shared of do amendment with your structure.
My issue is resolved now. Thank you!