PHP if… multiple values
-
I’m having trouble coding my page. I would like to include a PHP-file into my posts. The problem is that I have multiple files and the file that has to be shown depends on what value I entered in the custom field.
Like this…
IF custom field = 1
-> PHP include ‘firstfile.php’
IF custom field = 2
-> PHP include ‘secondfile.php’
IF custom field = 3
-> PHP include ‘thirdfile.php’
…Can you help me?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP if… multiple values’ is closed to new replies.