• Resolved moonkin09

    (@moonkin09)


    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);
    ?>
    • This topic was modified 6 years, 8 months ago by moonkin09.
    • This topic was modified 6 years, 8 months ago by moonkin09.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter moonkin09

    (@moonkin09)

    this is my button codes

    <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>
    • This reply was modified 6 years, 8 months ago by moonkin09.
    • This reply was modified 6 years, 8 months ago by moonkin09.
    Plugin Author Ryan Novotny

    (@ryannovotny)

    I think the problem is having PHP inside the do_shortcode. Can you try getting the download link as a string and adding it in there instead?

    Plugin Author fatcatapps

    (@fatcatapps)

    Hello there,

    It’s been a few days since we replied last. We just wanted to make sure that your issue got resolved or you had any other queries. I would like to inform you that I will mark this thread as resolved in a few days if we do not get a reply back from you within a few days.

    Thanks.

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.