[wp-trac] [WordPress Trac] #14300: shortcodes aren't being substituted when query_posts is used to specify the category
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 14 11:36:41 UTC 2010
#14300: shortcodes aren't being substituted when query_posts is used to specify the
category
--------------------------+-------------------------------------------------
Reporter: mirmillo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.0
Severity: normal | Keywords: shortcodes, query_posts
--------------------------+-------------------------------------------------
Comment(by dd32):
This actually highlights a bug, Not in the shortcode system, but in the
templating system.
Shortcodes are not parsed in excerpt's, They're striped from them instead.
Whats happening here, Is Twentyten treats archives as a the_excerpt(), and
treats non-archives as the_content();, WordPress doesnt count the 2nd
example as being an "archive" (is_archive() == true).
Now, The reasoning why shortcodes are not in the except, Generally,
Excepts are sub-50 words, You cant just throw a video HTML embed in one of
those, nor can you expand many shortcodes to that length. Its designed to
hold pure plain text.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14300#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list