WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Secondary HTML Content] Add plgin to custom post type (5 posts)

  1. duncmorley
    Member
    Posted 3 years ago #

    Just wondered if anyone could shed any light on how to add the secondary HTML content box to a custom post type? I need the page & post to stay and my coding knowledge is minimal at best.

  2. Monsieur CÚdric
    Member
    Posted 3 years ago #

  3. duncmorley
    Member
    Posted 3 years ago #

    I did see this article prior to posting. Unfortunately, this article refers to moving the secondary html block from 'Page' to CPT whereas I require the secondary HTML block to appear on both.

  4. Monsieur CÚdric
    Member
    Posted 3 years ago #

    You can add secondary html block in page and CPT.

    add_meta_box('secondary_content_'.$i,$title,'secondary_block_box_inner','post','normal','high',$i);
    add_meta_box('secondary_content_'.$i,$title,'secondary_block_box_inner','custom-post-type','normal','high',$i);
  5. duncmorley
    Member
    Posted 3 years ago #

    Ahhhh nice work. It has added the box fine! Thanks, will test it out this afternoon.

Topic Closed

This topic has been closed to new replies.

About this Topic