[wp-hackers] Shortcode to show excerpts by tag?

Bryan Spahr bryanspahr at gmail.com
Mon Feb 2 18:45:27 GMT 2009


Hi all -
I'm looking to create a static page that includes a list of posts that
have a certain tag.  I'm thinking I should be able to do something
like this:

Blah blah static text blah blah blah
--------------------------------
[list_excerpts tag='orange']

and would end up with something like this:

Blah blah static text blah blah blah
--------------------------------
Related Links
* the orange blah
  A story about blah blah
* two orange blah blah
  A story about blah blah blah
* blah blah blah three oranges
  A story about blah blah blah blah

I could write a plugin from scratch, but would (obviously) prefer to
find something that already works, or that I can apply minimal
enhancements to,...  or even just an example of the mini-loop to
return the excerpts inside my plugin so I spend less time fumbling
about.

I'm sure this is easier than I have imagined.  Thanks for any direction,

Bryan Spahr


More information about the wp-hackers mailing list