[wp-hackers] topic exchange integration
Luca Lizzeri
luca.lizzeri at gmail.com
Mon Jul 19 07:35:45 UTC 2004
Steph,
> function looks nice -- but now, where do I put it? in my-hacks.php?
Make a file named something like ite.php, should go In
wp-content/plugins, then you should activate it from the plugin admin
page.
> > // Hook into the Plugin API
> > add_action('publish_post', 'ite_trackback');
>
> so this is the call to the function. I assume it means that when a post
> is published, it will run the function above. Where should that line go?
Should stay in the same file as the function.
> Are we sure the function will run AFTER the meta fields are filled?
Yes. The meta fields you fill before publishing.
> For displaying, we would need a function like the_category()
> (the_ite_channel()?) -- but I could also put something together with
> strings and tape that will display it correctly.
I think you need a filter plugin for that.
Cheers,
Luca
More information about the hackers
mailing list