The post formats feature allows you to customize the style and presentation of posts. As of this writing, there are 9 standardized post formats that users can choose from: aside, gallery, link, image, quote, status, video, audio, and chat.
In addition to these, the default “Standard” post format indicates that no post format is specified for the particular
post.
To add this functionality to your theme, include the following code in your functions.php, specifying the post formats
you’ll be taking advantage of. e.g. If you only want the aside, image, link, quote, and status Post Formats, your code
should look like this:
add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );
In addition to these, the default “Standard” post format indicates that no post format is specified for the particular
post.
To add this functionality to your theme, include the following code in your functions.php, specifying the post formats
you’ll be taking advantage of. e.g. If you only want the aside, image, link, quote, and status Post Formats, your code
should look like this:
add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );
How to add favorite button in posts details page in wordpress?
ReplyDelete