WordPress.org

Ready to get started?Download WordPress

Forums

Blog post- or page- wide option of a plugin? (2 posts)

  1. GrigoryPtashko
    Member
    Posted 1 year ago #

    Hello.

    I'm using a plugin which has an option that is global. This is option is set on the plugin's settings page. I want to modify this plugin so that this option would be set on every blog post or a page. Like a little widget with this option on a blog post or a page edit page.
    Can someone point me to the right direction (wiki pages, etc)?

    Thank you.
    Grigory.

    [ Please do not bump, that's not permitted here. ]

  2. Ben Huson
    Member
    Posted 1 year ago #

    You'll need to add a custom meta box to post/page edit pages with a field for the option value.

    You then need to save this option and post meta data when the page/post is saved.

    Look at the following documentation which includes examples:

    http://codex.wordpress.org/Function_Reference/add_meta_box
    http://codex.wordpress.org/Function_Reference/update_post_meta

Topic Closed

This topic has been closed to new replies.

About this Topic