How to add post types in Frontier Theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5747
    Esteban
    Guest

    I want to add Post types: video, audio, etc

    What is the correct code to add this function?

    Thanks

    #5750
    Ron
    Keymaster

    Add this on a child-theme functions.php

    function ra_add_post_types() {
       add_theme_support( 'post-formats', array(
          'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
       ) );
    }
    add_action( 'after_setup_theme', 'ra_add_post_types' );
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Frontier’ is closed to new topics and replies.