Jump to content

Show the last wordpress blog on a different page.


Flames

Recommended Posts

done all though it was a bit strange to get right, although WP blogs have things like [caption] (and am assuming there are others) which aren't transferred into html, so the problem is how could i get rid of the [caption] tags when echoing the value but still have it in the database otherwise it ruins the quality of the WP blog itself.

Sometimes it's helpful to read about the functions on php.net.  This is what it says about str_replace():

 

  Quote
If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of ereg_replace()  or preg_replace().

so close, the function replaces [caption (notice without the ]), and [/caption], but the problem is in the caption tag theres other information like [caption id=1" name="2" width="3] and this causes a problem because 1,2 or 3 can have any value.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.