• Hi all,

    I have a problem on my site..I’m new to wordpress coding so I might did mistake.
    I tried to show thumbnails on my twenty ten theme feed. currently all you can see in my feed is text.
    apparently i did something that now when you enter the specific post (each post) wordpress takes the picture that i have in this post and place it in the header of the post.

    I will be happy to get your help to do to things:
    1. to stop showing the picture when someone enter the post.
    2. to show the picture that inside the post in the feed of the blog.

    my blog is http://www.nirhindi.com

    thank you very much in advance.
    Nir

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    I’m not seeing the problem. Were you able to resolve it? If not, would you please give us a link to a post showing the problem?

    To get images to show in feed, select “Full Text” instead of “Summary” for the feed at Settings -> Reading in your blog’s Dashboard.

    Thread Starter nhindi

    (@nhindi)

    Hi James,

    Thanks for the reply.
    I still have the problem. I tried different browsers as well and the picture that exist in the post appear in the header. I took e a screenshot but i dont see exactly where and if i can attach it here.

    Regarding the pictures in the feed, I didn’t explain myself perfectly…
    I dont want the whole post to appear but rather a summary..my question is can I make the feed take the picture from the post even though the feed is defined for summary appearance?

    Thanks
    Nir

    Moderator James Huff

    (@macmanx)

    Upload the screenshot via Media -> Add New in your blog’s Dashboard, then past the file URL here (the one ending in .jpg or .png).

    Thread Starter nhindi

    (@nhindi)

    Hi James,

    did as you said..that the link i could see
    http://nirhindi.com/?attachment_id=1257

    Moderator James Huff

    (@macmanx)

    Ah, ok, I see it on that post.

    Your theme uses the set Featured Image as the header image.

    Edit the post in question, look for the “Featured Image” box in the right sidebar, and hit the Remove Image link.

    If that removes the image from the post too, follow this guide to add the image without setting a featured image: https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages

    Thread Starter nhindi

    (@nhindi)

    Hi James,

    thanks…I tried to do what you told me but every time I updated the post nothing happen. probably i code it by mistake when trying to create the thumbnails to appear at the feed.
    now, i tried to find what shall i do in order to fix the problem…i copied this code:

    // Check if this is a post or page, if it has a thumbnail, and if it’s a big one
    if ( is_singular() && current_theme_supports( ‘post-thumbnails’ ) &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘post-thumbnail’ ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    //echo get_the_post_thumbnail( $post->ID );

    but apparently i did even worse 🙂 now i dont have picture at all.
    any recommendations?

    thanks
    nir

    Moderator James Huff

    (@macmanx)

    I recommend asking at https://wordpress.org/support/theme/twentyeleven#postform so the theme’s developers and support community can help you with this.

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

The topic ‘Pictures problems in header and feed’ is closed to new replies.