View Single Post
Old 07-26-2009, 02:28 PM  
Robocrop
Confirmed User
 
Robocrop's Avatar
 
Industry Role:
Join Date: Aug 2008
Location: Hollywood
Posts: 2,785
Wordpress plug code.

I browsed around and were looking for a way to being able to plug vids to other sites using wordpress.

I spoke to Fris and he came up with a solution for this. However I am also using ATL for my tubetheme site, and the solution Fris had didnt work for me since it didnt ignore the urls from ATL. ( Or maybe I didnt know any way around it, very nice plugin btw. )

So I got a friend to code me something that ignores all urls and just re-writes the one you choose.

First of all you must insert this code in your "index.php" file.
Code:
<?php 
$plugurl = get_post_meta($post->ID, 'plugurl', true);
if ($plugurl)
{
?>
	<?php echo $plugurl; ?>
<?php
}
else
{
?>	
	
<?php
}
?>
Then you have to make a customfield called "plugurl"

When this is done you can now plug any post to which site you prefer.

I hope someone find any use of this.

Last edited by Robocrop; 07-26-2009 at 02:31 PM..
Robocrop is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote