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

Hi,
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";
      }
      else
      {
        $href = "products.php?q=".urlencode($row["name"]);
      }

with:

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

The link doesn't go to for example:
http://mywebsite.com/product/producta.html

but to the not existing:
http://mywebsite.com/pt_2/product/producta.html

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...

Cheers,
David.
--
PriceTapestry.com