Tag Info

New answers tagged

0

When you call get_the_content() some filters aren't applied like they would with the_content() so if you want your content to be formatted you have to use the following: $my_content = apply_filters( 'the_content', get_the_content() ) If you want to extract the youtube video out of your content you'll have to detect the youtube link with a regex and then ...


2

You already have your updateYoutube() function. Edit it to insert a new post. Very generally: function updateYoutube( $videocode ){ global $conn; $run = $conn->query("SELECT `ID` FROM `youtubetable` WHERE `ID` = '$videocode'"); if ($run->num_rows > 0) return false; else { if ($conn->query("INSERT INTO ...



Top 50 recent answers are included