Skip to content

Instantly share code, notes, and snippets.

@jesgs jesgs/api-helpers.php
Last active Aug 29, 2015

What would you like to do?
Fix for post_parent field sorting problem in ACF5 Pro. Untested so use at your own risk!
// line 1689 advanced-custom-fields-pro/api/api-helpers.php
// Replace line 1689 with these two lines of code:
$page_parent_id = isset($args['post_parent']) ? $args['post_parent'] : 0;
$all_posts = get_page_children( $page_parent_id, $all_posts );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.