You are here:  » Use rss.php with WP plugin

Use rss.php with WP plugin

Submitted by marco@flapper on Mon, 2013-11-04 19:45 in

I had the rss.php for random products. But on wordpress my rss feed still has the Base HREF for example pt_2.

So if I use:

      print "<item>";
      if ($config_useRewrite)
        $href = "product/".tapestry_hyphenate(urlencode($row["name"])).".html";
        $href = "products.php?q=".urlencode($row["name"]);


print "<link><![CDATA[".$href."]]></link>";
print "<guid><![CDATA[".$href."]]></guid>";
print "<description><![CDATA[";
print "<a href='".$href."'>";

The link doesn't go to for example:

but to the not existing:

Is there a way to get rid of the base href in the rss feed? I could change it in config.php but don't know what the impact will be on the rest of Pricetapestry and the pto plugin?

Submitted by support on Tue, 2013-11-05 11:14

Hi Marco,

That's strange - I can't see from the above where $config_baseHREF would be picked up from - please could you post the full script (I'll remove before publishing your reply) so I can see it in context and I'll check it out...