WordPress.org

Ready to get started?Download WordPress

Forums

Business Directory Plugin
[resolved] Full sized images (5 posts)

  1. unknwntrr
    Member
    Posted 9 months ago #

    Hi,
    how can I make this plugin display the full sized image in the single listings view? I can't find where is get's the thumbnail in the code, I don't mind coding it myself, but I don't even know how to get the image URL…

    http://wordpress.org/plugins/business-directory-plugin/

  2. businessdirectoryplugin
    Member
    Plugin Author

    Posted 9 months ago #

    I will need to check with my developer to find this out--he's a bit backed up, so it may be a day or two before I can respond.

  3. businessdirectoryplugin
    Member
    Plugin Author

    Posted 9 months ago #

    Hi unknwntrr,

    My developer finally responded:

    There is no existing setting for this since we enforce the thumbnail dimensions set by the user in the settings tab. I'm also not sure if he wants only the full sized version of the thumbnail or of all images in single view. In any case, the thumbnail and other images for the single view are handled in api/api.php inside the function _wpbdp_render_single (at around line 356). Since the thumbnail and other images are standard WP attachments we use the WP functions for everything.

    For instance, changing wpbdp-large to full in the call to wp_get_attachment_image_src results in the full sized version of the image being linked by the thumbnail. Changing wpbdp-thumb to full in the call to wp_get_attachment_image results in the thumbnail image being the full sized image.

    [Moderator Note: please do not post large chunks if text in italics. Try using the blockquote button instead.]

  4. unknwntrr
    Member
    Posted 9 months ago #

    Thank you! That solved my problem.

  5. businessdirectoryplugin
    Member
    Plugin Author

    Posted 9 months ago #

    Glad it worked.

Reply

You must log in to post.

About this Plugin

About this Topic