Jump to content

Show the last wordpress blog on a different page.


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():

 

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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