Enable All Possible Post Formats

language: PHP
license: Other

Code for Snippet:

                
add_theme_support( 'post-formats', 
	array( 
		'aside', 
		'gallery',
		'link',
		'image',
		'quote',
		'status',
		'video',
		'audio',
		'chat'
	) 
);
add_post_type_support( 'post', 'post-formats' );
add_post_type_support( 'page', 'post-formats' );
// and other custom post types if you have them
comments powered by Disqus

Info

Source Site:

http://www.codecollector.net/view/F4A20172-B76E-4E89-87DC-59F995F31543-519-00000240B4D5E5EB

Tags: Wordpress

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 266
Date Added: 2015-10-12 10:10:53
Last Modified: 2015-10-12 04:21:28

Web Analytics