Okay
  Public Ticket #286842
edit slider description
Closed

Comments

  • Khaled started the conversation

    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 .?

  • Khaled replied

    hey is there any answer here please !!

  •   Support replied privately
  •   Khaled replied privately
  •  1,973
    Support replied

    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

  • Khaled replied

    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'] ?!!

  •  1,973
    Support replied

    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

  • Khaled replied

    thanx alot :)