Plugin Directory

Macro Expander

Replaces user-defined keywords in a blog post with the output from the corresponding user-defined PHP function.

Download Version 1.1

Known Issues

  • This is a quick hack, not extensively tested but it seems to work for me.

  • WordPress already adds the

and

tags around the [[keyword]] before the plugin is called -- the plugin doesn't remove those.

  • You can't use " and ' (and possibly a handful of other characters) in parameters because WordPress replaces them with curly quotes before the plugin has a chance to parse them. You can use spaces, though.

  • Maybe pass an $is_rss parameter instead of using 2 separate functions?

  • Maybe change syntax to: ?!

About

  • Version 1.1 (8 June 2007) - The parameter separator is now ][ instead of |. Added macro_rss_* functions for the RSS content.

  • Version 1.0 (7 June 2007) - First version

Written by Matthijs Hollemans

http://www.hollemansproductions.com/wordpress-macro-expander-plugin.html

Requires: 2.0 or higher
Compatible up to: 2.2
Last Updated: 2007-8-16 Downloads: 525

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(2 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1