How can I make sure a plugin processes my code?
-
I’ve got a plugin that I’ve written that acts on a short code
The plugin expects a page ID as the argument and is something like this:
[myplugin post=1]
This work OK on its ownBut, how do I make sure this plugin is processed if I do other processing?
For example, I’m playing around with creating a template that reads in page ID’s
After reading in the page ID’s, I want to construct strings like [myplugin post=1]So, when the page or post is shown, then the shortcode for [myplugin post=1] should be triggered as it normally is
Problem: I’m doing this and all I get printed is [myplugin post=1] ??
How can I make sure that the plugin code is processed?
Note: I want to keep the plugin code separate and independent – else I could just incorporate the plugin code
Hope some of the above makes sense
Thanks
Omar
- The topic ‘How can I make sure a plugin processes my code?’ is closed to new replies.