I have a Function that returns a boolean (true or false)
I want to use that in a HTML condition, but it does not work.
What am I doing wrong?
If you expect the function to return a boolean, the value to check agains should be 1 or ‘1’ for true and 0 or ‘0’ for false.
[wpv-conditional if="( is_front_page() eq 1 )" debug="true"] This function returns true [/wpv-conditional]
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
|-||-||14:00 – 20:00||14:00 – 20:00||14:00 – 20:00||14:00 – 20:00||14:00 – 20:00|
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)