Support » Plugin: Code Manager » Use PHP variable in WordPress page

  • Is it possible to use a PHP variable created in a Code Manager snippet in a WordPress page?

    e.g. <audio controls><source src=”$Audio”></audio>

    Where $Audio is a link scraped in the PHP snippet.

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @akmiecik,

    Sorry for my late response! It looks like I totally missed your post.

    You can use a PHP shortcode to add an audio control using variables like this:

    <?php
    $audio = 'your-audio-url';
    echo "<audio controls><source src='$audio'></audio>";
    ?>

    Does this help?

    Best regards,
    Peter

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.