Skip to content

mthjn/Slideshare-Wordpress-Thumbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Slideshare-Wordpress-Thumbs

Get thumb from a CDN via Slideshare API (need to register own)

Requires

metabox plugin

Do

  • getThumbs.php code comes in functions.php, with API credentials
  • there will be two metaboxes in post, fill in slideshow URL
  • on save there will be admin notice with link to thumb, copypaste it
  • call it in your theme, like:
<?php if ( !empty( rwmb_meta( 'rw_cdnurl' )  )) { ?>
  <img src="<?php echo rwmb_meta( 'rw_cdnurl' ); ?>" width="210" height="143">
<?php } else { ?>
<?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')) ?>
<?php } ?>

About

Display SlideShare thumbs as featured image in Wordpress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages