Support » Plugin: Dynamic Content Gallery » [Plugin: Dynamic Content Gallery] First attached image display?

Viewing 5 replies - 1 through 5 (of 5 total)
  • bump, i’m looking for it too.
    When using auto, it search inside the content, and is not using the attachment

    you must add the possibility to choose the size of the image displayed.
    function dfcg_grab_post_image($parent_id) {
    $args = array(
    ‘size’ => ‘full’,
    ‘attr’ => ‘full’,
    ‘num’ => 0
    // Get the image attachment ID
    $id = dfcg_get_image_id($parent_id, $args[‘num’]);
    // Get the image details (returns array of src, width, height)
    $image = wp_get_attachment_image_src($id, $args[‘size’]);
    // We only want the src
    $output = $image[0];
    return $output;

    the option to change “full” to the size of our choice

    Madri2, Thanks for posting your solution!

    well in fact it IS displaying the attached picture, but since you can’t change the size of it without modifying the source code, it’s not practical

    I beleave I have the same issue, but don’t understand the above.

    It is Not pulling first image. I noticed it had been but that was Not the image I wanted so I added one before it, still pulls other one it had before instead.

    Any way to have it pull the featured image? This would probally work best.

    And I just cant seem to get the size right as well, Any thoughts?


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Dynamic Content Gallery] First attached image display?’ is closed to new replies.