Quote:
Originally Posted by cyberxxx
Actually this feed contains very different content (videos galleries). So this case requires its own code. For example, you can do it like this:
PHP Code:
$base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
$post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";
Or somehow else. If you need a different layout the code will be different too.
|
Cool the layout doesnt matter is there a way to post the preview thumb to a custom field like "thumb"?