I'm new to wordpress, so chances are I'm missing something pretty basic here.
I'm trying to write a plugin which uses custom PHP code to generate output. I managed to get this working on the admin-side, but on the user side a properly working solution eludes me.
I've managed to find the following 2 hooks to use:
add_action ('parse_request', 'myPluginFunc'); add_action ('wp', 'myPluginFunc');
When I call index.php?MyPlugin=myPluginFunc this works in the sense that myPluginFunc() is called and it's output is echoed back on the screen, however the output is placed above the main theme output area (right below the top black WP menu bar).
So: How do I display output generated by a custom PHP function (output which is not a Post) on the main display area of the page? What hooks do I use to achieve this?
Any pointers would be much appreciated.