Quote:
Originally Posted by cyberxxx
You can do it this way:
Code:
$post ['custom_fields'] ['thumb'] = preg_replace ( '/.*?img src="(.*?)".*?$/s', "\\1", $post ['post_excerpt'] );
$base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
$post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
$post ['post_content'] .= "<table align=\"center\">\n";
$post ['post_content'] .= "<tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a></td><td><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr><tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a></td><td><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr>\n";
$post ['post_content'] .= "</table>\n";
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";
Sorry, didn't get this question. Do you mean that you are getting duplicated posts or the they just don't synonymize?
|
they weren't synonymized and the post were coming back like this:
mysite.com/man-in-hat
mysite.com/man-in-hat2
mysite.com/man-in-hat3
mysite.com/man-in-hat4
With all the post being the same except the title had a number added to it. I was manually pulling the feed, and i changed the check duplicate content settings to title and
guid and also on global i unchecked "Disable Feed Duplication Control" and that seemed to fix it.