Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Custom post type Archive: How to have month as headline?

$
0
0

Hello,

I am working on a archive page for a custom post type "Events".
The archive should be a list of events, like usual ordered by date BUT I need the month name to be a headline that only shows once (before the events for the month).

Example:

APRIL 2014

Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …

May 2014

Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …

June 2014

Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …
Event_date Event_title Event_cutomfield1 Event_cutomfield2 …

….

I have the archive-events.php created just struggle finding out how to get the MonthYear Headline separated.

How can I achieve this?

Thanks and king regards,
Gregor


Viewing all articles
Browse latest Browse all 20145

Trending Articles