Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress featured image download in multiple size

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146021
    Harry Saggu
    Participant

    I am developing a wallpaper website for wallpapers download. So i want an option near featured image to allow user to download attached image in multiple size.
    i have searched google many time for this problem but unable to find the solution.

    Please help to Solve this problem

    #146035
    Harry Saggu
    Participant

    Thanks for reply Rob …..

    Now i got this solution for multiple size images.

    <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘wall-thumb‘); echo ‘[‘; echo ‘sdkvnsdkv’; echo ‘][1]’; } ?>

    and in function.php file i have assign the image size like this. add_image_size( ‘wall-thumb’, 570, 9999 );

    Finally i got the way like this .

    [1]: ‘ . $large_image_url[0] . ‘ “‘ . the_title_attribute(‘echo=0’) . ‘”

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.