how to add if …. then … condition on Template page?

Posted in: Newspaper
Post count: 364

I’ve got a page with url=mysite.com/feedback?formtype=1
Could you advise, how to add logics for page mysite.com/feedback like this inside?

if(formtype=1) {iframe …. form1 ….}
if(formtype=2) {iframe …. form2 ….}
if(formtype=3) {iframe …. form3 ….}

How to GET this variable on the page mysite.com/feedback?
It’s clear for me that PHP code insert should be done with help additional plugin, for example – https://www.quora.com/How-do-I-add-custom-PHP-code-in-WordPress-pages

But I want to organize this logics with Template options. is it possible?

Post count: 35449

Hi,

Unfortunately I do not know how to do that, I know how a condition should look and work, but I do not know what variable to trigger with php, also this is a custom work, you need to have a developer skills.

Thank you for your understanding!

Post count: 364

thanks, no more questions!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.