Trying to pull Custom Field value into this code.
-
I’m hoping that there’s an easy solution to what I’m trying to do. I’m using Exec-PHP and some code to automatically pull related YouTube videos into my posts.
The code that is in the actual post is this…
include_once("youtube_class.php"); $theproduct = 'topic'; $videoshow = new youtube(); echo $videoshow->get_youtubevideo($theproduct);
If I replace ‘topic’ with the keywords I want related to the video it works fine, however I would like it to automatically pull from a custom field I have named ‘description’ which would automatically show youtube vids based on the content of the that custom value.
There has to be a way to do this. Here’s a link to the full code. Thanks.
https://www.quietaffiliate.com/dynamically-generating-webpages-inserting-video
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trying to pull Custom Field value into this code.’ is closed to new replies.