Adds a Customizer control to select one or multiple posts (and eventually terms and users).
Author: | XWP (profile at wordpress.org) |
WordPress version required: | 4.7.0 |
WordPress version tested: | 4.9.0 |
Plugin version: | 0.4.2 |
Added to WordPress repository: | 07-09-2016 |
Last updated: | 09-11-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://github.com/xwp/wp-customize-object-se... |
Total downloads: | 6 511 |
Active installs: | 60+ |
Click to start download
|
ChangeLog
0.4.2 – 2017-11-01
- Bump minimum WP to 4.7 and indicated tested up to 4.9.
- Update
ObjectSelectorControl
to allow passing options
without options.params
.
0.4.1 – 2017-02-17
- Increase importance of
z-index
in CSS rule for Select2 dropdown for compatibility with conflicting rule in Shortcake.
- Fix bug with clearing a selection. See #31
- Allow
LIKE
to be used in meta queries for object selector searches. See #32
- Introduce
customize_object_selector_result
filter.
See issues and PRs in milestone and full release commit log.
Props Weston Ruter (@westonruter), Sayed Taqui (@sayedwp.
0.4.0 – 2017-01-08
- Add an edit shortcut in selected posts to open corresponding post section from Customize Posts; re-use
wp.customize.Posts.startEditPostFlow()
. See #8, PR #12.
- Add ability to whitelist additional query vars via
customize_object_selector_post_query_vars
filter. See PR #25.
- Fix Select2 elements erroneously appearing on top of a section’s header. See PR #26.
- Add ability to use Customize Object Selector component outside of the customizer entirely. Immediate use case is for JS Widgets and its Post Collection widget. See PR #27.
See issues and PRs in milestone and full release commit log.
Props Miina Sikk (@miina), Weston Ruter (@westonruter), Derek Herman (@valendesigns), Sayed Taqui (@sayedwp.
0.3.0 – 2016-09-21
Added:
- Add support for emulating
wp_dropdown_pages()
. The options for a dropdown are fetched via a call to get_pages()
, and these dropdown options are displayed when no search is entered and show_initial_dropdown: true
is passed among the post_query_vars
. The arguments for wp_dropdown_pages()
can then be passed via the dropdown_args
query var.
- Replace
page_on_front
and page_for_posts
controls with object selector controls emulating wp_dropdown_pages()
.
- Add a control param for
show_add_buttons
to control whether or not the add buttons are shown (if Customize Posts is active).
- Eliminates code in
setupAddNewButtons
in favor of re-using startCreatePostFlow
code now in Customize Posts 0.8.0. This sets the initial placeholder title for created posts and navigate to url in preview.
- Show loading indicator while re-population is happening.
- Prevent
page_on_front
and page_for_posts
from being set the same.
- Ensure strings are translatable.
- Add banner and icon assets.
Fixed:
- Update
post_query_args
to post_query_vars
in PHP.
- Prevent
post__in
from causing posts_per_page
to be set too early.
- Skip calling close on select2 if element already gone. Fixes JS error.
- Fix issues related to syncing the setting value to the select2 value.
- Ensure notifications are set on containing construct.
- Fix transport implementation by returning request object.
- Pass params from control to component by reference without cloning so that params can be adjusted on control to affect the component. (Not ideal long term.)
0.2.0
Initial release of fork from Customizer Ajax Select.