[wp-pro] Fw: Need a simple fix (I think)

Bill Erickson bill.erickson at gmail.com
Thu Jan 28 13:35:25 UTC 2010


First, make sure you're putting the shortcode in the html view, not visual
view. If you're still having a problem, check to see if you've written any
functions that use add_filter('the_content','[your function]');

Make sure your function ends in return $content, NOT echo $content. When it
echos, it is effectively returning NULL to subsequent filters, including
do_shortcodes().

I made this mistake and it took forever to figure out why shortcodes weren't
working on a client's site.

On Thu, Jan 28, 2010 at 7:17 AM, Scrappin' Stuff <kathy at scrappinstuff.com>wrote:

>
> I'm looking for someone to do a simple (I think) fix for me on my Wordpress
> blog.
>
> Whenever I try to imbed something on a page (from a plug-in)  that says
> something like [xxxx id="2"] or [wplinkdir] it doesn't work.
>
> For example, I have plug-in that says to put this code on the page
> [wplinkdir] which I do, but then instead of the actual links showing up on
> the page, it just shows the [wplinkdir].
>
> This happens for everything that uses the [ ] in it.
>
> Kathy Gleason
> Scrappin' Stuff
> www.ScrappinStuff.com
>
> _______________________________________________
> wp-pro mailing list
> wp-pro at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-pro
>
>


-- 
Bill Erickson
Wordpress Consultant
http://www.billerickson.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-pro/attachments/20100128/59b91b77/attachment.htm>


More information about the wp-pro mailing list