Vladimir’s WordPress Forum


 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

strip code from excerpt

Add a New Topic Reply to Post
UserPost

0:20
16 January, 2009


Craig

Guest

Post edited 23:23 – 15 January, 2009 by Craig
Post edited 23:25 – 15 January, 2009 by Craig


Hi Vladimir,

Thank you so much for your theme and plug-ins.

I have a small problem on my "snazzy" page as code from my photo organizer plug-in, nextGen Gallery, shows in the excerpt. I should be able to strip it out but my lack of knowledge is preventing me from finding the exact place to do that.

Here is the page so you can see what I'm talking about.

This is my first use of WP, so I'm still trying to understand just how things work.

Thanks in advance for your help.

Craig

22:37
19 January, 2009


Craig

Guest

Post edited 21:38 – 19 January, 2009 by Craig


Hi Vladimir,

I found the answer to my question above and thought I would post it here for others if they run into a similar problem. I found in your code where you use the strip_tag function and added this code below

$text = preg_replace( '|\\[(.+?)\\](.+?\\[/\\\\1\\])?|s', '', $text );

It works well.

Craig

1:28
25 February, 2009


redwood

Guest

Craig,

I'd like to use this code you wrote. Which file do you insert the code into? There are several in the NextGen folder. Also… (if you wouldn't mind) at what line of code do you enter this command? :) Thanks!

16:29
16 March, 2009


Vladimir

Admin

posts 707

The code is added in version 1.2.3 by default. Thanks Craig!

Reply to Post

Reply to Topic:
strip code from excerpt

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 8