How to use PHP Condition
-
Hi all,
I’m pretty new to PHP.
I want the Modal to show on page with ID 371 when a variable has a specific value.
Say on page ID 371 I have set:
$modal = 'A';
Then in the settings of the Modal I set at the PHP Condition line:
if($modal == 'A');
Changing the variable on that page to, say, ‘B’, that doesn’t make any difference.
The modal keeps showing up.
I have checked the ‘Only show on specific pages and single posts’ and specified the page ID 371 on ‘Pages and posts to display Modal Dialog ‘.
Any clues anyone?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use PHP Condition’ is closed to new replies.