WordPress.org

Ready to get started?Download WordPress

Forums

Creating on-page options for Custom Post Type (4 posts)

  1. steliodj
    Member
    Posted 1 year ago #

    Hi there,

    I'm creating a plugin for creating Landing Pages.

    I use custom post type and custom fields for the landing pages, but i need to add some on-page options for each entry. For example i need to have a an option(check box) for hiding the header(header is edited through a WYSIWYG custom field) on a specific landing page.

    I searched for different option "frameworks" and i found Redux ( https://github.com/ghost1227/Redux-Framework ) that works for plugins and also uses WordPress Settings API.

    The examples of Redux and any other framework i found as well as any tutorials i found online about creating settings/options pages are for general options but i need to have those options in the editing screen of my specific custom post type.

    I'm not a PHP guru but i'm trying and willing to learn, any help will be appreciated or at least if someone can point me to the right direction it would be nice.

    Cheers,
    Stelios

  2. Patrick Johanneson
    Member
    Posted 1 year ago #

    If you want to add custom meta fields to your custom post type's editing screen, have a look at the Custom Meta Box and Fields library. I've used it a few times and it's incredibly handy.

  3. steliodj
    Member
    Posted 1 year ago #

    Hi Patrick,

    thanks for sharing...do you know if it works with plugins or is it only for themes?

    I have also find this one if you want to check it out https://github.com/Gizburdt/Wordpress-Cuztom-Helper

  4. Patrick Johanneson
    Member
    Posted 1 year ago #

    So far I've only used it in plugins, so I'd say it's good to go.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.