• I have a theme called detube which integrates with this plugin nicely. I discovered that somehow in this function in this plugin

    function tern_wp_youtube_video($e=true)

    the $post->ID doesn’t seem to be recognized although there is a global $post (twice actually). 🙂

    I was testing and echoing $post->ID and it returned nothing. I wanted to check why it wasn’t returning the YouTube video ID I had.

    I redefined the function to

    function tern_wp_youtube_video($pid, $e=true)

    and passed the post id from the theme, where it was calling and it seems to have resolved the issue. It gave me the YouTube video ID that was there in the meta field. What could have been the issue? It should have worked by default isn’t it?

    http://wordpress.org/plugins/automatic-youtube-video-posts/

  • The topic ‘$post->ID isn't recognized’ is closed to new replies.