WordPress.org

Ready to get started?Download WordPress

Forums

Multi Image Metabox
[resolved] select exact size of uploaded images (2 posts)

  1. razzetto and the happy people
    Member
    Posted 10 months ago #

    Hi, i'm having some problems in getting the url of custom sizes images.
    I have a custom sized image type, named dimension-gallery (hard cropped, 800x533).
    I'm trying to get the url formatted in this way:
    wp-content/uploads/2013/09/photo-800x533.jpg
    But no luck.
    I'm using:

    <?php
    $imgs  = get_images_src('dimension-gallery', true);
    foreach( $imgs as $i )
    echo '<li style="background-image: url('. $i[0].');">></li>';
    ?>

    but it points to the uncropped-original url (wp-content/uploads/2013/09/photo.jpg)

    if i echo $i[1].$i[2] the result is 800533 , correct;

    anyway i can't get the desired url

    Thanks

    http://wordpress.org/plugins/multi-image-metabox/

  2. razzetto and the happy people
    Member
    Posted 10 months ago #

    nevermind.. some typos here some there. working perfectly now

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.