WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
Custom fields (2 posts)

  1. ridclubmba
    Member
    Posted 2 years ago #

    Hi,

    How can I add custom fields to promotions pages? They don't show up in the Screen Options, like they do in normal static pages.

    Thanks

  2. Micah Wood
    Member
    Plugin Author

    Posted 2 years ago #

    Custom fields are not available by default. To add them, just drop the following code into your active theme's functions.php file and you should be able to see custom fields appear as an option:

    add_action('init', 'my_custom_init');
    function my_custom_init() {
        add_post_type_support( 'ps_promotion', 'custom-fields' );
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic