How to add lockercat to custom fields in single-post.php
-
I tried this but now links doesnt work getting link like this
example.com/post-name/<?php echo get_field(download_link); ?><?php $lockit = '[lockercat]' . '<center><p><a class="mbutton" target="_blank" href="<?php echo get_field(demo_link); ?>">DEMO</a><p></center> <center><p><a class="dbutton" target="_blank" href="<?php echo get_field(download_link); ?>">DOWNLOAD</a><p></center>' . '[/lockercat]'; echo do_shortcode($lockit); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add lockercat to custom fields in single-post.php’ is closed to new replies.