how can I add image title to portfolio slider description in "pp_description" class , its already has the format "post_name" but I want it like "post_name / image_title "
i did some customization using get_featured_image_metadata method but when I call $image_info['caption'] or $image_info['desc'] it return empty !! anyway all I want just to get image file name or its okay if I got image attachment caption , Alternative Text , description' any of these it will work fine ... but for this function didn't work it return always 'portfolio' when call $image_info['title'] ?!!
It may be an issue with image id you are passing to the function
make sure that for the second, third, fourth etc image you use MultiPostThumbnails::get_post_thumbnail_id to get the image id you pass the image id to get_featured_image_metadata
for the first featured image use get_post_thumbnail_id($post->ID) to get the image id
Dear ,
how can I add image title to portfolio slider description in "pp_description" class , its already has the format "post_name" but I want it like "post_name / image_title "
how can I do that any help .?
hey is there any answer here please !!
Hi,
to do that requires a bit of custom work.
the files you need to change are /sections/portfolio_section_overlay.php
line 75
or
/sections/portfolio_section_slide.php
line 71
you see there that the current pp_description is the post title
to retrieve the image title use /sections/portfolio_item_full_screen.php as an example.
Thanks
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
i did some customization using get_featured_image_metadata method but when I call $image_info['caption'] or $image_info['desc'] it return empty !! anyway all I want just to get image file name or its okay if I got image attachment caption , Alternative Text , description' any of these it will work fine ... but for this function didn't work it return always 'portfolio' when call $image_info['title'] ?!!
It may be an issue with image id you are passing to the function
make sure that for the second, third, fourth etc image you use MultiPostThumbnails::get_post_thumbnail_id to get the image id you pass the image id to get_featured_image_metadata
for the first featured image use get_post_thumbnail_id($post->ID) to get the image id
Thanks
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
thanx alot :)