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

Ajax child page load #3

Open
JiveDig opened this issue Jul 15, 2016 · 0 comments
Open

Ajax child page load #3

JiveDig opened this issue Jul 15, 2016 · 0 comments

Comments

@JiveDig
Copy link

JiveDig commented Jul 15, 2016

Just wanted to see if there was any interest in using ajax to load the child pages on click of the dropdown icon.

We have a custom plugin that is heavily based on hierarchical CPTs. For the sake of performance I was considering using pre_get_posts to only show top level pages in the admin list. Not only would this help performance, but it would also then show the correct page count when viewing the admin page. Lastly, on click of the dropdown icon, ajax would load the child pages below the parent.

It may be more work than I'm thinking, but would be a really cool addition.

If it goes that route, it may be beneficial to create a settings page for which CPT's to use the plugin on, and which CPTs to use ajax load on.

Thoughts?

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

1 participant