WordPress.org

Ready to get started?Download WordPress

Forums

Help! How to insert post format into function.php (2 posts)

  1. sztufi
    Member
    Posted 2 years ago #

    Hello!

    I inserted the post format php code into function.php

    add_theme_support(
              'post-formats', array('audio','video'));

    And something went wrong.I took a print screen check it!

    http://urbanheroes.ro/home/wp-content/uploads/2012/03/wordpress-post-format.jpg

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    And where did you add this in your functions.php file? It should be inside a function that is triggered by after_setup_theme - eg:

    add_action( 'after_setup_theme', 'function_name' );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags