Support » Plugin: Q and A Focus Plus FAQ » Request: Add author support

  • Resolved sylviabass

    (@sylviabass)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request: Add author support’ is closed to new replies.