voceconnect / wp-twitter-cards
Helper class to generate meta tags for twitter card support. When support is added to a post type, a meta box is added on the post edit view to configure the twitter card properties.
Installs: 2 391
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 2
Open Issues: 1
Requires
- voceconnect/voce-post-meta: ~1.9
- voceconnect/wp-dependencies: ~0.2
- wpackagist-plugin/multiple-post-thumbnails: ~1.6
This package is auto-updated.
Last update: 2024-11-29 05:34:00 UTC
README
Contributors: voceplatforms, kevinlangleyjr
Tags: twitter, cards, meta, helper
Requires at least: 3.0
Tested up to: 4.0
Stable tag: 1.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
Helper class to generate meta tags for twitter card support. When support is added to a post type, a meta box is added on the post edit view to configure the twitter card properties.
Requires both Voce Post Meta and Multi Post Thumbnails WordPress plugins. https://github.com/voceconnect/voce-post-meta https://github.com/voceconnect/multi-post-thumbnails
Installation
As standard plugin:
See Installing Plugins.
As theme or plugin dependency:
After dropping the plugin into the containing theme or plugin, add the following:
if( ! class_exists( 'WP_Twitter_Cards' ) ) { require_once( $path_to_wp_twitter_cards . '/wp-twitter-cards.php' ); }
Usage
On the WordPress init
hook:
WP_Twitter_Cards::add_post_type( 'post-type-here' );
In the post edit view configure the Twitter Card metabox to enable the tag output.
Changelog
1.3.0
- Modify handling to prevent fatal errors when dependencies are loaded before WP
1.1
- Adding support for player card
1.0
- Initial release