WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Macro Expander

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

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: 1,023

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1