Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1240

    Hello Kriesi,

    Great theme! I have a quick question before purchasing the theme. I wanted to know how the theme treats the images you post. If I add a image to the post body, does the theme auto resize that for the post image and thumbnail in gallery view? Or are the images added by entering specific URLs in custom fields on the post page?

    Thx.

    #34509

    The theme auto resizes the images automatically. You can set specific post thumbs though..

    The Dude

    #34510

    Hey Dude,

    I went ahead and purchased the Expose theme based on your response to my previous question and learned that the theme doesn’t function how I had initially asked. I was hoping that the theme would take the image in the post body, and from that create the thumb/feature image. I learned once I purchased that the image has to be added via a meta box on the edit post page. Here is what I am trying to create.

    I am using the Gravity Forms plugin to allow users to submit info, and a image via the form to create a post. I did a test and the image uploads to the body of the post, but the theme doesn’t auto resize the image in the post for the thumb. The free Gallery theme by Chris Wallace (http://upthemes.com/2010/03/gallery/) does this beautifully, but I am a fan of the Kreisi look.

    I found the code in Expose for the Media upload in the kriesi_meta_box.php file. Do you think it is possible to grab some of the code from the media upload and add it to the Gravity Forms post image submission hook below so the image uploaded becomes the thumb/feature image?

    add_filter(“gform_post_submission”, “set_post_content”, 10, 2);
    function set_post_content($entry, $form){

    //Replace 1 with your actual form id
    if($form["id"] != 1)
    return

    //getting post
    $post = get_post($entry["post_id"]);

    //changing post content.
    //NOTE: Replace 8 (in $entry[8]) with your actual image field id. You can find the id by inspecting the page markup
    $post->post_content = “This is my image “;

    //updating post
    wp_update_post($post);
    }

    Thanks for any input.

    #34511

    Have a look at this plugin: http://wordpress.org/extend/plugins/get-the-image/

    It grabs the featured image from the post content. Please report if it helps you.

    #34512

    For this plugin, in the FAQ for it says you need to insert

    <?php if ( function_exists( ‘get_the_image’ ) ) get_the_image(); ?>

    but where would that go into? Index.php?

    #34513

    Is there any answer? I need this also. Thank You Dude!

    #34514

    Simply you can attached all images and add this code in the post content

    it will call all attached images

    The code

    <?php

    $attachments = get_children( array(‘post_parent’ => get_the_ID(), ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’) );

    foreach ( $attachments as $attachment_id => $attachment ) {

    echo ‘<div style=”float:left;margin:0px 5px 0px 0px;background:#eeeeee;border:1px solid #bbb;padding:5px;” >’;

    echo ‘ ‘ . wp_get_attachment_link( $attachment_id ) . ”;

    echo ‘</div>’;

    } ?>

    #34515

    I must admit I never used the “get the image” plugin. As far as I know you need some php skills to implement it.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Post Image’ is closed to new replies.