The Execution of All Things

Overview

The Execution of All Things better known as wp-exec is a plugin for WordPress 1.5. Its purpose is to facilitate a transparent HTML-to-PHP API layer. Meaning that users can easily embed custom tags inside posts or pages which will then in turn be replaced by dynamic content. In most instances, this is a much cleaner alternative to the RunPHP plugin.

Current Tags Supported

Download

The latest version available is: wp-exec-0.7.zip. After downloading, please read the Installation Procedures below. If you’re looking to uninstall this plugin, find the appropriate procedures on your own, jerk. (hint: they come after installation procedures)

Samples & Examples

Date: This tag is based off the built-in date() functionality of PHP. It returns the current date/time.

usage: <exec type="date" />

optional:

Categories: This tag is based off of the wp_list_cats() functionality. It outputs a list of categories based on the parameters supplied.

usage: <exec type="categories" />

optional:

For more information on the optional parameters, please see wp_list_cats().

Archives: This tag is based off the wp_get_archives() functionality. It outputs a list of the archives based off of the parameters supplied.

usage: <exec type="archives" />

optional:

For more information on the optional parameters, please see wp_get_archives().

Function: This tag allows you to call any WordPress function (and all those available in activated plugins). You must supply the name (function name) attribute. The params attribute is optional but if it is used, should be comma separated.

usage: <exec type="function" name="…" />

optional:

Include: This tag allows you to dynamically include any post or page within one another. You simply need to supply the tag the id number of that post or page. Although I do not really foresee any other data except the content being useful — the tag, nevertheless, offers an optional field="…" parameter making other fields also available.

usage: <exec type="include" id="#" />

optional:

Bloginfo: This tag facilitates grabbing allows you to dynamically include any post or page within one another. Although I do not really see any other data except the content being useful, the tag offers an optional field="…" parameter making other fields available. It based on the get_bloginfo($show) function.

usage: <exec type="bloginfo" show="…" />

show can be any of the following (if omitted, defaults to name):

Links: This tag is based off the get_links() functionality. It returns a list of links.

usage: <exec type="links" />

optional:

For more information on the optional parameters, please see get_links().


Installation Procedures

Apparently I have duped you into actually downloading and installing one of my plugins… don’t worry there is still some hope for you. WordPress boasts a phenomenal plugin system therefore installation and activation really could not be any simpler. Enjoy.

  1. Download the Latest Available Version
  2. Extract the Zip Archive
  3. Upload wp-exec.php to your /wp-content/plugins/ folder
  4. Go to your WordPress Administrative Console
  5. Under Options -> Writing, make sure “WordPress should correct invalidly nested XHTML automatically” is unchecked
  6. Under Plugins, locate the “wp-exec” entry and activate it

Uninstall Procedures

So, for whatever reason, you’ve decided to insult me and shame my family by uninstalling my plugin that I worked oh-so very hard on. Huh? What do you have to say for yourself? Alright, if that guilt trip didn’t work then I guess you’re pretty serious about your commitment on destroying my life. At any rate, here are the instructions you requested, bastard:

Troubleshoot / Help

If you have any problems with this plugin, send me an email and I will do my best to help you out. I can’t guarantee that I can solve anything but I’m willing to try. If there any feature suggestions, bug reports or just general comments — please email me at wp-exec@navidazimi.com. I love you. Thanks.

Adieu. Navid.


Categories