Hi,
I know we can use shortcode in this template using
[title] [code]
But I want to add one if else condition… For eg if [code] == “12345” then do this else do something
How to achieve this??
I am trying to use following but it is not working:-
<?php if (do_shortcode(‘[code]’) == “12345”) { ?>
[code]
<?php } ?>
This reply is for PremiumPress customers only.
369
Views
2
Replies
Copyright © 2010-2026 PremiumPress Limited.
Hi,
I know we can use shortcode in this template using
[title]
[code]
But I want to add one if else condition… For eg if [code] == “12345” then do this else do something
How to achieve this??
I am trying to use following but it is not working:-
<?php if (do_shortcode(‘[code]’) == “12345”) { ?>
[code]
<?php } ?>
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now