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

Allow using bu_links in get_pages and wp_list_pages #39

Open
hadamlenz opened this issue Mar 27, 2018 · 0 comments
Open

Allow using bu_links in get_pages and wp_list_pages #39

hadamlenz opened this issue Mar 27, 2018 · 0 comments

Comments

@hadamlenz
Copy link

We created our nav without BU Navigation in mind. In order to use bu_links in our navigation we needed to add a filter to get the bu_links posts and add them into the $pages array, then sort. A developer must add add_bu_links = true to the args of get_pages() or wp_list_pages() in order for it to work, and so it is backward compatible.

I created a gist bu-navigation-external-links-get-pages.php

This would go well at the bottom of extras/bu-navigation-external-links.php. It does not account for all of the possible options added to get_pages or wp_list_pages. Will submit a pull request if you like

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