Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7558

    odaikan
    Participant

    Hello.

    I added “Coupon” custom post types to my website, but I do not see excerpt field in single post page and screen option. Could you give me an instruction how to add excerpt field on “Coupon” custom post types?

    Thank you!

    #7559

    Intense Visions
    Keymaster

    Hello!

    We did not include support for excerpt with the “Coupons” custom post type. Adding support for it is pretty easy.

    Open up your theme or child theme’s functions.php file and add the following line.

    add_post_type_support( ‘intense_coupons’, ‘excerpt’ );

    Once the above line is added, save the file and then excerpt should be available in the Coupon posts.

    If you have any troubles or need additional help, please let us know.

    Thanks,

    Josh
    Intense Visions

    #7561

    odaikan
    Participant

    Hello, Josh

    I added your code, but somehow it did not work.
    But, it worked with following code.

    add_action( ‘init’, ‘my_add_excerpts_to_pages’ );
    function my_add_excerpts_to_pages() {
    add_post_type_support( ‘intense_coupons’, ‘excerpt’ );
    }

    Anyway, Thank you for your help!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.