GithubHelp home page GithubHelp logo

wp-twitter-cards's Introduction

WP Twitter Cards

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

wp-twitter-cards's People

Contributors

kevinlangleyjr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.