[wp-hackers] But only in the posts I want
jeremy.visser at gmail.com
Tue Jan 22 02:07:09 GMT 2008
On Mon, 2008-01-21 at 19:05 +0000, Mário Gamito wrote:
> I'm developing a plugin to display a button to a Portuguese bookmark
> service. It's already runninng well, it appears on all the posts.
> But what I'd really like is to have in the write article page near the
> editor a checkbox so users can select only the posts they want to have
> the button.
> How can I achieve this ?
You probably want to store this value in the post meta. Look up the
get_post_meta(), add_post_meta(), and update_post_meta() functions.
Now, as for creating the checkbox, you most likely want to look up one
of the dbx hooks (check out <http://adambrown.info/p/wp_hooks> and
<http://wphooks.flatearth.org/> for a list of hooks).
More information about the wp-hackers