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

  1. GrigoryPtashko
    Posted 3 years ago #


    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.

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

  2. Ben Huson
    Posted 3 years 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:


Topic Closed

This topic has been closed to new replies.

About this Topic