Multiple Featured Images Plugin

Url::::::::::https://wordpress.org/plugins/multiple-featured-images/installation/

This Code Use function.php

if( class_exists( ‘kdMultipleFeaturedImages’ ) ) {

$args2 = array(
‘id’ => ‘featured-image-2’,
‘post_type’ => ‘programme’,      // Set this to post or page
‘labels’ => array(
‘name’      => ‘Featured image 2’,
‘set’       => ‘Set featured image 2’,
‘remove’    => ‘Remove featured image 2’,
‘use’       => ‘Use as featured image 2’,
)
);
$args3 = array(
‘id’ => ‘featured-image-3’,
‘post_type’ => ‘programme’,      // Set this to post or page
‘labels’ => array(
‘name’      => ‘Featured image 3’,
‘set’       => ‘Set featured image 3’,
‘remove’    => ‘Remove featured image 3’,
‘use’       => ‘Use as featured image 3’,
)
);

new kdMultipleFeaturedImages( $args2 );
new kdMultipleFeaturedImages( $args3 );

}

 

 

Display Featured Image in your Page:

if( class_exists( ‘kdMultipleFeaturedImages’ ) ) {

<?php kd_mfi_the_featured_image( ‘featured-image-3’, ‘programme’ );?>

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s