No the id is correct, In and after the loop the title and Id are the same with the_title(get_the_ID() and get_the_ID();
No, It’s not a weird loop, it’s just after the regular loop.
I’m thinking of an other way to solve my problem.
I can revert the system, and have the post in a relation ship field in the expertises custom post instead. Then I just need to call the get_field(‘related_post’) and i will have my array of id’s.
It will be simpler, and maybe even more logic for the redactors.
I’m going to grab some food then get back to it.
I will tell you how it went. Thanks for the help, I really appreciate it.
Yes, it’s multiple selections.
Yes I’m using guberbug blocks, but no the relationship field is not a block, it’s a classic ACF field.
No, it’s not a sub filed.
Since it’s multiple, shouldn’t it be something like “IS IN” instead of “LIKE” for the compare value ?
Hi John,
Thanks for taking the time.
I removed it because of this (last comment)
https://stackoverflow.com/questions/42011047/wordpress-query-by-acf-relationship-field
It’s still not working. But it should right ?
I’m wondering if I did something backward or totally miss something here.
Hello, Did you found a solution ?
Don’t you get Cannot modify header information warning with this function ??