Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter valfreixo

    (@valfreixo)

    Ok, update. I’ve actually builted an form to upload the file and found the image_resize tag. By looking at the code in media.php it does what I need. However, I couldn’t retrieve the $_FILES var. I guess wordpress is reseting it so I can’t catch it on the other side. Any idea?

    Thread Starter valfreixo

    (@valfreixo)

    Ok, found the solution

    Thread Starter valfreixo

    (@valfreixo)

    I’m building this site for reporters that cover music events. They have like 30 or 40 photos each day. I’m just looking for a way to create all the sizes previously just to ease on the work.

    All the photos have the 9 by 6 ratio so every image resized will be a perfect fit. Also can’t stretch/contract image sizes because they simply don’t want it. Tough huh?

    Thank you for your time in helping me out

    Zen

    Thread Starter valfreixo

    (@valfreixo)

    Guys, sorry about the bump. But I’m really stuck on this.

    Thank you for any direction. Not looking for the complete solution. Just for a direction were I can start building it

    It’s been a while since you posted this. Don’t know if you already got this. If you haven’t, here’s a snip that may help you

    $args = array(
        'post_type' => 'attachment',
        'numberposts' => -1, // bring them all
        'post_status' => null,
        'post_parent' => $post->ID // post id with the gallery
        ); 
    
    $attachments = get_posts($args);

    There. $attachments now is an Array of objects containing all the post attachments. You may add an extra arg stating that you want only images (because you can attach videos too).

    Hope this helps.

    Cheers

    Ricardo Valfreixo
    minimalistic studios

Viewing 5 replies - 1 through 5 (of 5 total)