Vladimir’s WordPress Forum


 
guestdefault Vladimirs WordPress Forum
Current User: Guest user permissions Vladimirs WordPress Forum
Search Forums:


searchicon Vladimirs WordPress Forum 






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

topic Vladimirs WordPress Forum

strip code from excerpt

addtopic Vladimirs WordPress Forum Add a New Topic addpost Vladimirs WordPress Forum Reply to Post
UserPost

0:20
16 January, 2009


Craig

guestdefault Vladimirs WordPress Forum
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

guestdefault Vladimirs WordPress Forum
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

guestdefault Vladimirs WordPress Forum
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

 Vladimirs WordPress Forum
Admin

posts 685

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

addpost Vladimirs WordPress Forum Reply to Post

Reply to Topic:
strip code from excerpt

Guest Name (Required):

Guest Email (Required):

htmlEditor Vladimirs WordPress Forum
Smileys
sf confused Vladimirs WordPress Forum sf cool Vladimirs WordPress Forum sf cry Vladimirs WordPress Forum sf embarassed Vladimirs WordPress Forum sf frown Vladimirs WordPress Forum sf kiss Vladimirs WordPress Forum sf laugh Vladimirs WordPress Forum sf smile Vladimirs WordPress Forum sf surprised Vladimirs WordPress Forum sf wink Vladimirs WordPress Forum sf yell Vladimirs WordPress Forum
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 7