Open szepeviktor opened 8 years ago
I was trying with post__not_in
arg but there's no way to tell the post ID at shortcode_ui_register_for_shortcode()
.
Thinking further the current post ID is not in the AJAX request. I think it'll be difficult.
Maybe the solution could be in edit-attribute-field-post-select.js
?
I am developing an ultra-simplified page builder. It works by a CPT called
blokk
. There is a shortcake which lets you pick 1 blokk bypost_select
on posts and pages and blokks also. So a blokk could contain another blokk.Could we add
$query_args['exclude_self']
toShortcode_UI_Field_Post_Select
to prevent selecting the blokk itself?