WordPress.org

Ready to get started?Download WordPress

Forums

Auto Post Images (API)
2 Changes (2 posts)

  1. hanimausi
    Member
    Posted 3 years ago #

    1- Is it possible to make the thumbnail non clickable? I dont want a
    link.

    2- Is it possible to have the thumbnail on the left side instead of
    right side? I want to align the thumb on the left side of my post.

    Anybody or the Developer can help?

    http://wordpress.org/extend/plugins/auto-post-images-api/

  2. karunanidhi
    Member
    Plugin Author

    Posted 3 years ago #

    hanimausi,

    for #2 you can use custom CSS classes and list that class name in the "Container style class" to set the styling for the images, something like

    .apiimages {
    float:left;
    clear:left;
    }

    for #1: it is possible to do that currently by modifying the code directly. if you do that then only the full size image is not available and only the thumbnail is available. seems like the functionality you are asking for is to be able to upload full size images and then have the plugin show only a smaller/thumbnail size image in the post. to do that you can change the line 409 in file auto-post-images.php

    FROM

    $sHtml .= "<img src=\"{$sThumbnailUrl}\" class=\"{$this->sImageClass}\" alt=\"{$sThumbSearchTags}\" title=\"".ucwords($post->post_title)."\" />
    ";

    TO

    $sHtml .= "<img src=\"{$sThumbnailUrl}\" class=\"{$this->sImageClass}\" alt=\"{$sThumbSearchTags}\" title=\"".ucwords($post->post_title)."\" />
    ";

    I will make a change to the code in the next version to make the image non clickable if "Use thumbnails to link to full size images?" is to "No". If it is set to yes then the thumbnail will be clickable.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic