• Hello, just a question..ig I add a new post with an images,after uploading and adding text everything works fine, but after puplish I just see my text and only if I click on the title I also can the the image.

    The same problem is with Flickr, I add to my blog ,and I need to click on the titel to see the images…exp.
    https://cupcakefan.com/?cat=1 …no images, only after clicking titel ?
    what′s wrong ? I remember me that I already was using wordpress and flickr, and everything worket fine . the image include my text was on my mainpage – NO clicking Titel ! Can you tell me please what′s wrong?
    Thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Usually this issue is caused when you are displaying the post excerpt in the template instead of the content. I think the function the_excerpt() omits <img.. tags, whereas the_content() will display the <img.. tags. So, you will need to locate the point in (probably) index.php where the the_excerpt() is being called, and call the_content() instead w/ correct params. Keep in mind that if you change this, the entire post will be displayed instead of the shortened excerpt form (unless you’re using the ‘more’ tag to divide excerpt from rest of content) The more tag can be inserted at any point in a post w/ a button on tinymce editor toolbar.

    Thread Starter sunlady

    (@sunlady)

    so do you mean, that′s is because I use a static page ?
    But many thanks for your reply !

    The link that you’ve provided above displays all posts in a given category (thus the ‘cat=1’ parameter on your url). Usually, a file in your theme named ‘index.php’ handles this. Within that file, there is a ‘loop’ which is a php construct (PHP script) that reads all posts (not static pages, but posts) from your database that have a category id of 1, and deplays them in a list, usually in reverse chronological order (just like a blog should). What I’m suggesting to you is that within that loop in the index.php file, there is probably a call to the_excerpt(), and the the_excerpt() function call is using specific rules to display the excerpt text that you’re seeing, and one of those rules is that it omits images. This is by design, since many blog owners want very brief text for an excerpt, which does not include images (which can be large). If you trust your ‘coding skill’ (beware if you’re not familiar w/ PHP and/or editing your theme), you could try to change the the_excerpt() call in the loop to a the_content call. The the_content() function will display the full post, unless when you’ve created the post you’ve inserted the ‘more’ tag in the content (using the editor toolbar button) to section off an excerpt from the rest of the post. The the_content() function requires parameters, so if you are going to try this, read up on both the the_excerpt() and the_content() functions in the developer docs on this website. Also, insure that you save the contents of index.php so that you can restore it if you have a problem (crucial!). If you can post the (short) section of your theme’s index.php file that contains the loop here, perhaps I can provide suggestions. Good luck! ??

    Additional reading:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘images are showing only after a click on the titel ..’ is closed to new replies.