Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Showing only excerpts on Post Category pages

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45203

Hi,

On the Post category pages I would like to display just a small feature image & an excerpt of the posts in the category. However, at the moment it's showing whole text/article of each post.

I've been through the options in WP settings & also my themes options, and changed a few things, but I can't get them to display just the excerpts. Any ideas on how to do that?

Thanks

Rachel
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45209

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Rachel,

Are you writing excerpts separately or trying to get them automatically generated? Here's what the codex says about excerpts.
Excerpt, automatic excerpt, and teaser
The manual WordPress excerpt is often confused with the automatic excerpt or with the teaser (the part of a post that appears on the front page when you use the More tag). While both are related to the manual excerpt, they are different from it.

The relationship between the three is this: When a post has no manual excerpt and the post template uses the the_excerpt() template tag, WordPress generates an excerpt automatically by selecting the first 55 words of the post. When the post template uses the the_content() template tag, WordPress will look for the More tag and create a teaser from the content that precedes the More tag.

What template are you using?

Ed
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45218

Hi,

That looks like the exact info I need. I'm not quite sure how I can check which one my template is using though?

What do you mean by template? Do you mean theme? I'm using the Abundance theme that is based on the Woocommerce plugin.

Is that what you meant?

Thanks

Rachel
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45221

Sorry, I forgot to mention that I am hoping to get it done automatically, and not write them separately
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45222

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Rachel,

A theme is a a collection of templates and styles. Although, we somtimes use the term template when we mean theme. It's a bad habit I've acqired from jumping between different platforms that use the term differently.

Within the theme there will be a template for the page. The page template will have the code that sets up the teaser. Usually the automatic excerpt is not created unless you insert a "more" tag in the post. Without the more tag, it will show the entire content.

Check out this codex page for more information.
codex.wordpress.org/Excerpt
codex.wordpress.org/Template_Tags/the_excerpt

Your theme/template may be written not to use the automatic excerpts. It's hard to tell without looking at the code. See if the codex page helps you track it down. If you're using the more tag and it's still not working, then it's in the template.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45230

Hi Ed

Thanks for those links. I had a look at the articles & also found a plugin listed on them, 'auto excerpt everywhere'. I couldn't install it initially because my WP firewall plugin was blocking it & I was getting a fatal error message. I disactivated the Firewall & installed the plugin. It works just fine now but I hope I haven't made a mistake messing with the judgement of my firewall?? ;-)

The plugin seems perfect though & is exactly what I needed.

Thanks for you advice on that

Rachel
Please become a member of OSTraining to reply to this post.

Showing only excerpts on Post Category pages 1 year 2 weeks ago #45232

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
If the plugin is legit from wordpress.org, you shouldn't have any problems.

Ed
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.