Skip Navigation

[Resolved] Grouping of post by custom field type (date)

This thread is resolved. Here is a description of the problem and solution.

Problem:

Group the posts by a custom date field.

Solution:

You can use custom date field shortcode, like this:
https://toolset.com/forums/topic/grouping-of-post-by-custom-field-type-date/#post-2001481

Relevant Documentation:

https://toolset.com/2013/10/how-to-group-views-results-by-year-and-month/

0% of people find this useful.

This support ticket is created 3 years, 7 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.

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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by katjaS-3 3 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2000923

Hi,
I have read the input:
https://toolset.com/2013/10/how-to-group-views-results-by-year-and-month/

I would work fine if I would use the post-date. Unfortunately I have a custom field also in a date format.
I just need final help how to call the shortcode in the right syntax. This is my approach that doesn' work:

[heading condition="month" value="[types field='lesedatum' format='F'][/types]"]<h5>[types field='lesedatum' style='text' format='F'][/types]</h5>[/heading]

Any idea?

#2001481

Hello,

I have tried it in my localhost, it works fine, and I am using below shortcodes insider view's loop:

[heading condition="year" value="[types field='lesedatum' format='Y'][/types]"]
<h4>[types field='lesedatum' format='Y'][/types]</h4>
[/heading]
  
[heading condition="month" value="[types field='lesedatum' format='F'][/types]"]
<h5>[types field='lesedatum' format='F'][/types]</h5>
[/heading]
  
<h4>[wpv-post-title] [types field="lesedatum"][/types]</h4>
#2002585

OK. THX
so after I took out the statement: style='text' from my [types] it worked super.
My issue is resolved now. Thank you!