Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit e7227f4

Browse files
committed
Add tree_args post_query_var via xwp/wp-customize-object-selector#16
1 parent a8e6b35 commit e7227f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/customize-post-section.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,11 @@
501501
post_query_vars: {
502502
post_type: section.params.post_type,
503503
post_status: 'publish',
504-
post__not_in: [ section.params.post_id ]
504+
post__not_in: [ section.params.post_id ],
505+
tree_args: {
506+
exclude_tree: section.params.post_id,
507+
sort_column: 'menu_order, post_title'
508+
}
505509
},
506510
select2_options: {
507511
multiple: false

0 commit comments

Comments
 (0)