[wp-hackers] Shortcodes stopped working after 2.8.2
Chris Jean
gaarai at gaarai.com
Fri Jul 24 03:49:56 UTC 2009
I pasted your exact code into the default theme's functions.php file,
created a new post with the shortcodes, and it worked like a charm.
The content of the post is:
[hc] [merg]
Have you tried testing the code out on a different theme and/or
disabling all plugins. It seems to me that while upgrading to 2.8+ may
have caused you to experience the problem, the true source lies with
code outside the core.
Chris Jean
http://gaarai.com/
http://wp-roadmap.com/
Bryan Harley wrote:
> Actually, I should say 2.8 broke it. I reverted back to 2.7.1 and the
> shortcodes are working again.
>
>
> On Thu, Jul 23, 2009 at 3:47 PM, Bryan Harley<bryanharley at gmail.com> wrote:
>
>> Some of my short codes aren't working in 2.8.2. It's weird, some work
>> but some don't. Anyone know what the problem might be?
>>
>> All I'm doing is stuff like this...
>>
>>
>> function service_hc() {
>> return '<li><a href="URL">Health Care</a></li>';
>> }
>>
>> function service_merg() {
>> return '<li><a href="URL">Mergers & Acquisitions</a></li>';
>> }
>>
>> add_shortcode('hc', 'service_hc');
>> add_shortcode('merg', 'service_merg');
>>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list