Skip to main content

All Questions

Tagged with
3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Group and list posts by custom taxonomy

I'm trying to list posts from a CPT named "exposition" and group them based on a custom taxonomy called "date-exposition" (which are meant to be years such as 2010, 2015, 2017,...) ...
TonioLip's user avatar
1 vote
0 answers
261 views

Use posts_groupby filter with part of string in wp_query?

I am using posts_groupby filter to group by a custom field my wordpress posts. Is there any way using wp_query and posts_groupby to group my posts using part of a string of the custom field? Any help ...
stefanosn's user avatar
  • 133
0 votes
1 answer
445 views

SELECT TOP 1 in wp_query for each groupby meta value

Is there any way using wp_query class to execute SELECT TOP 1 sql command while using groupby for each meta_value results. I need the wp_query to select only the first one of each groupby meta_value ...
stefanosn's user avatar
  • 133