2017 © Pedro Peláez
 

wordpress-plugin post-thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

image

starise/post-thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  • Thursday, February 5, 2015
  • by starise
  • Repository
  • 1 Watchers
  • 0 Stars
  • 78 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

WordPress Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type., (*1)

Requirements

  • PHP >= 5.4
  • WordPress >= 3.5

Quick Start

First, in your theme's functions.php (or you can create a shim plugin that does this on the wp_loaded action) register a thumbnail. To do this, create a new PostThumbnails instance and pass in an array of arguments:, (*2)

use starise\PostThumbnails as PostThumbnails;

new PostThumbnails(
    [
        'label' => 'Secondary Image',
        'id' => 'secondary-image',
        'post_type' => ['post']
    ]
);

The template tag PostThumbnails::the_post_thumbnail is similar to WordPress' the_post_thumbnail but it displays your custom thumbnail in a post loop:, (*3)

<?= PostThumbnails::the_post_thumbnail('secondary-image'); ?>

For more details please check out the wiki, (*4)

The Versions

05/02 2015

dev-master

9999999-dev https://github.com/starise/Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  Sources   Download

GPL-2.0

The Requires

 

wordpress

05/02 2015

3.0.0

3.0.0.0 https://github.com/starise/Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  Sources   Download

GPL-2.0

The Requires

 

wordpress

05/02 2015

dev-dev

dev-dev https://github.com/starise/Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  Sources   Download

GPL-2.0

The Requires

 

wordpress

31/01 2015

2.2.0

2.2.0.0 https://github.com/starise/Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  Sources   Download

GPL-2.0

The Requires

 

wordpress

31/01 2015

2.0.0

2.0.0.0 https://github.com/starise/Post-Thumbnails

PostThumbnails Class for Wordpress. Enables multiple post thumbnails for post type.

  Sources   Download

GPL-2.0

The Requires

 

wordpress