You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$include = NULL; //so it doesn't affect the query below
}
else
{
$post_type = array('post', 'page');
We can fix this by either adding a new filter, or by looking at CPTs added by our CPT Add On and using the existing pmproap_supported_post_types filter in the shortcode.
It may be good to just filter the entire $args list before running get_posts()
The text was updated successfully, but these errors were encountered:
I hope there will be added a filter or it will be able to use the CPT Add On for this very soon as I am building something that needs support for custom post types.
Here is the relevant code:
pmpro-addon-packages/shortcodes/pmpro-addon-packages-shortcode.php
Lines 33 to 40 in 01f4ffe
We can fix this by either adding a new filter, or by looking at CPTs added by our CPT Add On and using the existing
pmproap_supported_post_types
filter in the shortcode.It may be good to just filter the entire
$args
list before runningget_posts()
The text was updated successfully, but these errors were encountered: