Condition content according to Week Even or Odd

Hello, Here again with some questions that may not have answer.

I have managed to display the number of the week with {{dc:global:date format=“W”}}
But after I get that number, in this case 18, what would be function to check if that’s even or not?

Also in a related subject, Is it possible for ACF to receive a variable from PHP?
Example: I have a php that will print a numeric value with the variable $member_level.

How do I get ACF or Conditional (content display) to read that value?

Any guidance or help is deeply appreciated.

Best Regards

Hey @RowrRigo,

Thanks for reaching out!

There’s no option in our builder to check if the result is odd or even. You need to create a function in your child theme to do that. You can refer to this article.

Yes, it is possible for the ACF field to receive a variable from PHP but it will require custom coding which is outside the scope of our theme support. You may seek 3rd party developers or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.