Skip to content
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

[pmpro_addon_packages] does not show CPTs #45

Open
dparker1005 opened this issue Sep 11, 2020 · 1 comment
Open

[pmpro_addon_packages] does not show CPTs #45

dparker1005 opened this issue Sep 11, 2020 · 1 comment

Comments

@dparker1005
Copy link
Member

Here is the relevant code:

$post_type = "page";
$post_parent = $post->ID;
$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()

@dGrinderslev-dk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants