Questions tagged [groupby]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
46 views

How can I group posts by months and years?

I have posts under a custom post type which I like to display in a page grouped by Year and Month. In the page template that I create, I managed to separate them by month, but still without grouping ...
0
votes
1answer
26 views

ACF pro: Group teaser by datepicker year and display custom sub fields [closed]

I want to group my custom post types into years. I should look like 2019 Post 1 Post 2 Post 3 2018 Post 1 Post 2 2015 Post 1 YEAR Post 1..n Following this example here: Order and group posts by ...
1
vote
0answers
50 views

Group custom post listing in admin section

I am trying to alter the listing results in the admin section for a custom post type. I am using Custom Post Type UI plugin to create custom post types and data is saved with meta keys. The listing ...
1
vote
0answers
414 views

Optimizing Wordpress Queries - Removing Group By ID

I'm looking to transform a few queries that I'm running through get_posts into direct MySQL queries, in the hopes of optimizing them further. I see that my initial get_posts query, once built and ...
5
votes
1answer
1k views

Select All in Parent Category, Group by Child Category?

I am trying to format a custom post type for a "series". Each post is an Episode, each Episode belongs to a Season, and each Season belongs to a series (just like a TV show). I have the following: ...
2
votes
1answer
3k views

How to search for posts IN OR title OR content OR author?

I have looked at many posts and questions regarding searches for custom meta, but I want to search for posts and include those if the search query matches an author name. I have come up with the ...
0
votes
0answers
102 views

Grouping parent categories into sections

I have the following post categories: Personal Care Jewelry Health & Fitness Automotive Gadgets Health & Fitness and have two sections: Men and Women, what I'm trying to do is to group the ...
1
vote
2answers
2k views

How to create user groups and allow custom posts and plugin modify/access to specific group?

I am looking for plugin or is there any method/function to create user groups and give an access them to modify/access.
0
votes
3answers
768 views

New register email notification sending some fields blank on site admin emai id

Working on real estate project.Here i am facing a problem with new email registration when user register with site admin getting some fields blank.i am using Group but plugin and also in back end ...
0
votes
1answer
627 views

How to group posts by months and add pagination?

I want to group by posts by months. Like this: January 2014 Post name Post name December 2013 Post name November 2013 Post name Post name Post name Post name I need to have 10 months per page, ...
0
votes
2answers
2k views

How to register a user to a group by an invitation code?

I'm working on a site where I'd like anyone to be able to sign up, but people who sign up with an invitation code would automatically be registered to an existing group associated with that code. How ...
0
votes
0answers
31 views

Wordpress Group By Problem

i have a custom post type called "events". in this post type, i have a metabox with the date of the event. saved as timestamp. my problem is, i want a whole year with every month. current only the ...
0
votes
1answer
485 views

Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected

I have posts of custom taxonomy called Areas with terms such as Articles, Presentations, News etc. These terms are applied to the normal post-type "post". Under a custom-post-type called "Company", I ...
0
votes
2answers
1k views

Grouping categories by genre

My wordpress video blog have several categories. Lets say the category can belong to several genres e.g actions,horror,mystery and another category belong to actions,horror,romance How do I group ...
2
votes
1answer
245 views

Arrange and separate posts

On a particular archive page I've created, I'm listing a number of posts by post name and they're listed in alphabetical order. Is there away to have them separated even further? As in all posts ...
1
vote
1answer
1k views

posts_groupby problem

On my search page I want to group the posts by post type. To do this I've got the following: add_filter('posts_groupby', 'group_by_post_type' ); function group_by_post_type( $groupby ) { global $...
1
vote
2answers
529 views

Distinction on meta value on pre_get_posts

I've got a special "position" meta field for posts which can be between 0 and 37. 0 Is ignored, and everything else can have obviously any number between and including 1 and 37. But this of course ...
6
votes
1answer
5k views

Display category posts grouped by taxonomy

I'm working on a project where I use the default posts as "Products", default category as "Application" and a custom taxonomy called "Groups". I want to list "Products" by "Application" (category....
3
votes
1answer
1k views

What's the easiest way to change the default landing page for BuddyPress groups?

I'm looking to have the default view for Groups be the Forum component instead of the Activity component. What's the best/easiest way to alter the default landing component/page?