Skip Navigation

[Resolved] Recent Posts or Posts by Category Type "Excerpts" for Static Homepage

This support ticket is created 10 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by dbarber 10 years, 5 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#80694

I'm trying to figure out how I can create my own "recent posts" or "latest blog entries" type excerpts to feature on a static homepage (consisting of a linked title, thumbnail of featured image, author name, published date, snippet of text from post, and a read more link)..

I've been somewhat successful in doing so, in that I've created a view that will display the title with URL, thumbnail, author name, published date, the Read More link, and I've been able to limit the number of excerpts as well (in this case to four).

But I'm lost on a couple of things:

How can I set it up so that only posts from a certain category are shown and how can I get some of the content from the post to show up without me having to create a manual post excerpt?

Ideally, I'd like to be able to set a limit on the number of characters that show up.

I know there are plugins designed to do this, but I'd rather have more control.

Not sure whether it matters or not, but I want to do this with regular WordPress posts, not custom post types.

Is this achievable?

#80874

Hi dbarber,

1) please try add a Taxonomy filter in your view:
Filtering Views Query by Taxonomy:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

2) Please try Views shortcode [wpv-post-excerpt], like this:
[wpv-post-excerpt length="150"]

If manual excerpt is set then length parameter is ignored – full manual excerpt is displayed
https://toolset.com/documentation/views-shortcodes/#wpv-post-excerpt

Please let me know if you need assist to do it.

Regards
Luo

#81005

Hi Luo

Thanks very much.

That's all sorted now.

Cheers

Dawson