WordPress.org

Forums

Q and A Focus Plus FAQ
[resolved] Request: Add author support (5 posts)

  1. sylviabass
    Member
    Posted 10 months ago #

    Would it be possible to add author support so that we can change the author from the edit screen? I was able to add this function by adding 'author' to the 'supports' under register_post_type. Thank you.

    `register_post_type( 'qa_faqs',
    array(
    'labels' => array(
    'name' => __( 'FAQs', 'qa-focus-plus' ),
    'singular_name' => __( 'FAQ', 'qa-focus-plus' ),
    'edit_item' => __( 'Edit FAQ', 'qa-focus-plus'),
    'add_new_item' => __( 'Add FAQ', 'qa-focus-plus')
    ),
    'public' => true,
    'show_ui' => true,
    'capability_type' => 'post',
    'rewrite' => array( 'slug' => $qafp_options['faq_slug'], 'with_front' => false ),
    'taxonomies' => array( 'FAQs', 'post_tag'),
    'supports' => array('title','editor','comments','author'),
    'has_archive' => false
    )
    );

    https://wordpress.org/plugins/q-and-a-focus-plus-faq/

  2. ELsMystERy
    Member
    Plugin Author

    Posted 10 months ago #

    Yes. I can add this in the next update. Not sure when that will be, but what you have done should work fine in the meantime.

  3. ELsMystERy
    Member
    Plugin Author

    Posted 10 months ago #

    Updated.

  4. sylviabass
    Member
    Posted 10 months ago #

    This is wonderful. Thank you very much!

  5. ELsMystERy
    Member
    Plugin Author

    Posted 10 months ago #

    Not a problem!

Reply

You must log in to post.

About this Plugin

  • Q and A Focus Plus FAQ
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic