Cutline Theme Support Forums » Tips & Tricks

Archive page

(5 posts)
  • Started 4 years ago by longacre
  • Latest reply from thirdeyetc

  1. longacre
    Member

    My main archive page only displays the text of the archived blog without the image that was in the original post. I am a painter & would like the images to show along wih the text on the main archive page. Now, it only shows the images if you click "see more" & go the specific post page. Does anyone know how make the images show? http://blog.JimmyLongacre.com (a work in progress)

    Posted 4 years ago #
  2. There is only one way to do this. The problem is excerpts disable html code. All of it.

    The way to resolve this is by doing two things. Make sure all your templates (archive.php, index.php, search.php .. think that's it) have the php code where it says the_content changed to the_excerpt.

    Now, rather than using the more tag to create the break points in your excerpts, when you are posting, copy the first paragraph along with the code for you image into the "optional excerpt" panel in your write post section.

    I stick the more tag in there anyway, because then when the click read more it will go to where the more tag is instead of to the top of the article.

    But yeah, if you use the optional excerpt panel instead you can still use html code in your excerpts.

    Chris Pearson has a good article about this at Pearsonified, which has a lot of good blogging articles...

    http://www.pearsonified.com/2006/11/wicked-wordpress-archives-in-one-easy-step.php

    Posted 4 years ago #
  3. longacre
    Member

    Thanks for your reply. I'm new to this & it sounds a little over my head, but I'll try to sort it out I'll for sure look for the Pearson article before I try making changes & messing things up.

    Posted 4 years ago #
  4. It sounds complicated but it's actually very easy. That article should explain what you need to know, but if you have further questions let me know.

    Posted 4 years ago #
  5. The main thing is just opening the archive.php file finding where it says the_content and changing it to the_excerpt. Then you repeat that on your search.php file if you want the same effect in your search results.

    Then just make sure you use the "optional excerpt" field as explained in that article.

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.