I have a website on which there is an option for FULL WIDTH SLIDER and the sliding images coming from the FEATURE IMAGE. By default, wordpress gives option for only one image.
Now, I’m using the plugin, that is- Dynamic Featured Image. Now, after installing that plugin, I’m getting option for adding more than 1 image, and after adding the images the slider shows only one image that I uploaded first. Is it possible that Slider will show all the images which I have added in the post?
https://www.ads-software.com/plugins/dynamic-featured-image/
]]><li>Title</li>
<li>Main featured Image</li>
<li>Three grid thumbnail featured image</li>
<li>Read more Link</li>
</strong>
Does anyone know how I can achieve this with a wordpress plugin or other wise
Thank you
I like your plugin, it’s awesome plugin.I just want to know if i can use this plugin for uploading multiple featured images via frontend of the website.
Like i am at single post page, i put a file upload form there below post and want to upload some other images too for that post like this plugin does from admin panel.
Thanks,
https://www.ads-software.com/plugins/dynamic-featured-image/
]]>functions.php:
if( class_exists( 'kdMultipleFeaturedImages' ) ) {
$args = array(
'id' => 'featured-image-2',
'post_type' => 'page', // 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',
)
);
new kdMultipleFeaturedImages( $args );
}
page-template.php (where ” ’36’ ” references the post_id of the page I’m trying to display this featured image on):
<div class="img-wrap">
<?php if( class_exists( 'kdMultipleFeaturedImages' ) ) {
kd_mfi_get_featured_image( 'featured-image-2', 'page', 'full', '36' );
} ?>
</div>
https://www.ads-software.com/plugins/multiple-featured-images/
]]>https://www.ads-software.com/plugins/dynamic-featured-image/
]]>If you’d like to check out the code and contribute, join the development at Github. Pull requests, issues, and plugin recommendations are more than welcome!
]]>Here is the function that creates my custom post type:
function create_service_type() {
register_post_type( 'service',
array(
'labels' => array(
'name' => _x('Services', 'post type general name'),
'singular_name' => _x('Service', 'post type singular name'),
'add_new' => _x('Add New', 'book'),
'add_new_item' => __('Add New Service'),
'edit_item' => __('Edit Service'),
'new_item' => __('New Service'),
'all_items' => __('All Services'),
'view_item' => __('View Service'),
'search_items' => __('Search Services'),
'not_found' => __('No services found'),
'not_found_in_trash' => __('No services found in Trash'),
'parent_item_colon' => '',
'menu_name' => __('Services')
),
'public' => true,
'has_archive' => false,
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ),
'capability_type' => 'page',
)
);
}
add_action( 'init', 'create_service_type' );
That works fine
And then here is the code for both of the additional featured images that I have set up.
if( class_exists( 'kdMultipleFeaturedImages' ) ) {
$args1 = array(
'id' => 'title-image',
'post_type' => 'page', // Set this to post or page
'labels' => array(
'name' => 'Title Image',
'set' => 'Set title image',
'remove' => 'Remove title image',
'use' => 'Use as title image',
)
);
new kdMultipleFeaturedImages( $args1 );
}
if( class_exists( 'kdMultipleFeaturedImages' ) ) {
$args2 = array(
'id' => 'services-title-image',
'post_type' => 'service', // Set this to post or page
'labels' => array(
'name' => 'Title Image',
'set' => 'Set title image',
'remove' => 'Remove title image',
'use' => 'Use as title image',
)
);
new kdMultipleFeaturedImages( $args2 );
}
I have an image size set for them:
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'title_image', 345, 125, true ); //(cropped)
}
And then, when calling the image on a page type it works fine. That’s the code I use for that:
<?php kd_mfi_the_featured_image( 'title-image', 'page', 'title_image' ); ?>
Now, the code that doesn’t work – this is what I have on my service custom post:
<?php kd_mfi_the_featured_image( 'services-title-image', 'service', 'title-image' ); ?>
Any ideas on why that doesn’t work?
The site this is on is https://host18.qnop.net/~lisalinc/
Pages where it works, there is an image next to the title, .e.g https://host18.qnop.net/~lisalinc/about/
On the services pages, it doesn’t work, e.g. https://host18.qnop.net/~lisalinc/service/health-wellbeing/
I really hope someone can help.
]]>