The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

youtube video title in the_permalink (1 post)

  1. ezhil
    Posted 5 years ago #

    hello guys, iam trying to create a videos section in my site for that iam using youtube url to get title and other attributes from the data api.
    All works fine but my permalink link shows up like this.


    iam using the title field for entering url.
    i know this sounds silly!..but what i need is that i did like to use the youtube title which can be generated using a php code below.

        $vidID = the_title();
        $url = "http://gdata.youtube.com/feeds/api/videos/". $vidID;
        $doc = new DOMDocument;
        $title = $doc->getElementsByTagName("title")->item(0)->nodeValue;

    how pass the '$title' value to the permalink. on clicking the publish button.
    is their any other way to implement my idea..

    As my videos are unlisted iam using this technique or is their any other solution to achieve this...?

Topic Closed

This topic has been closed to new replies.

About this Topic