-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for pmc_events post type. #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for contributing so quickly!
public static function get_query_args(): array { | ||
return [ | ||
'post_type' => Plugin::SLUG, | ||
'posts_per_page' => -1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs either a date query or a limit. Artforum has 36k events 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes. 😅
I've updated the query to fetch the last six months.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing, the class needs to be instantiated in this array:
pmc-wp-local-data-cli/classes/class-init.php
Lines 176 to 208 in ff071d8
$query_args = [ | |
new Query_Args\CoAuthors_Plus(), | |
new Query_Args\Nav_Menu_Item(), | |
new Query_Args\OEmbed_Cache(), | |
new Query_Args\Page(), | |
new Query_Args\PMC_Ads(), | |
new Query_Args\PMC_Amzn_Onsite(), | |
new Query_Args\PMC_Attachments(), | |
new Query_Args\PMC_Buy_Now_Block(), | |
new Query_Args\PMC_Buy_Now_Shortcode(), | |
new Query_Args\PMC_Carousel(), | |
new Query_Args\PMC_Custom_Feed(), | |
new Query_Args\PMC_Ecomm(), | |
new Query_Args\PMC_FAQ(), | |
new Query_Args\PMC_Gallery(), | |
new Query_Args\PMC_Hub(), | |
new Query_Args\PMC_List(), | |
new Query_Args\PMC_Not_For_Publication(), | |
new Query_Args\PMC_Nova_Homepage(), | |
new Query_Args\PMC_Profiles(), | |
new Query_Args\PMC_Profiles_Landing_Page(), | |
// new Query_Args\PMC_Publication_Issue(), | |
new Query_Args\PMC_Reviews(), | |
new Query_Args\PMC_Store_Products(), | |
new Query_Args\PMC_Term_Content(), | |
new Query_Args\PMC_TOC(), | |
new Query_Args\PMC_Top_Video(), | |
new Query_Args\PMC_Touts(), | |
new Query_Args\Post(), | |
new Query_Args\Safe_Redirect_Manager(), | |
new Query_Args\WPCOM_Legacy_Redirector(), | |
new Query_Args\Zoninator(), | |
]; |
No description provided.