WP-Macros
I worked for a good portion of yesterday on a plugin that would make life easier for the WordPress blogger. When going through the motions of blogging, it is not unusual to repeat code over and over again. A prime example is the image associate with the Blog Building Blocks series. There’s a lot of code to that image.
Enter WP-Macros. WP-Macros integrates a special Manage page in the administrative area but also gives you the ability to add/select a macro from a dropdown on the Write page.
This is beta, so please get back to me with any issues you experience. It needs some code cleanup but overall it works well.
Download: tar.gz (3.4k) | zip (3.6k)
1. Upload wp-macros.php and the wp-macros folder containing wp-macros-functions.php to your plugins directory and activate
2. Did you expect a step 2?
Pick up your copy of the WordPress Bible, a wildly popular resource for beginners and experts alike.
Popularity: 1% [?]



beautiful
beautiful
Glad you like it. :)
Glad you like it. :)
Hey Aaron, great plugin…
I hafd an idea for creating one that would make it easy for a user to insert YouTube video code into their blog, but wp-macros could easily take care of that…
There’s just one thing I’ve noticed, if WP isn’t installed in the root of the site it doesn’t work… I’ve had a hack around and I’ve fixed that problem, but true to form it broke everything else (namely the editing of macros).
You want me to send over what I’ve done so you can take a look?
Hey Aaron, great plugin…
I hafd an idea for creating one that would make it easy for a user to insert YouTube video code into their blog, but wp-macros could easily take care of that…
There’s just one thing I’ve noticed, if WP isn’t installed in the root of the site it doesn’t work… I’ve had a hack around and I’ve fixed that problem, but true to form it broke everything else (namely the editing of macros).
You want me to send over what I’ve done so you can take a look?
There’s a few thigns that I’ve found wrong but that’s why it’s a beta. I’ll work on making it relative. Thanks.
There’s a few thigns that I’ve found wrong but that’s why it’s a beta. I’ll work on making it relative. Thanks.
Just an FYI, the ZIP version of the file doesn’t have the folder structure. Also, when I activated it and went to the Macros manager page I got “Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/ydwblog.com/httpdocs/wp-content/plugins/wp-macros/wp-macros-functions.php on line 72″.
Just an FYI, the ZIP version of the file doesn’t have the folder structure. Also, when I activated it and went to the Macros manager page I got “Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/ydwblog.com/httpdocs/wp-content/plugins/wp-macros/wp-macros-functions.php on line 72″.