dev-psu
dev-psuAn easy to use (and extend) widget that allows you to selectively curate posts using a simple drag and drop interface
GPL-3.0+
The Requires
by Mat Gargano
wordpress widget select posts
An easy to use (and extend) widget that allows you to selectively curate posts using a simple drag and drop interface
=== Select Posts Widget ===, (*1)
Contributors: matstars
Tags: post, widget
Tested up to: 4.0
Requires at least: 3.5
Stable tag: 0.6.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html, (*2)
== Description == An easy to use (and extend) widget that allows you to selectively curate posts using a simple drag and drop interface., (*3)
The following filters are available:, (*4)
== Installation ==, (*5)
See Installing Plugins., (*6)
== Frequently Asked Questions ==, (*7)
= How do you use a custom template? =, (*8)
Simply extend the plugin using the spw_template
filter., (*9)
<?php add_filter( 'spw_template', 'customize_spw_template_filter' ); function customize_spw_template_filter( $template ){ $template_dir = get_template_directory(); return $template_dir . '/views/custom-spw.php'; } ?>
= How do I set the plugin to use post types besides/in addition to post
? =, (*10)
Simply extend the plugin using the spw_select_posts_widget
filter., (*11)
<?php add_filter( 'spw_select_posts_widget-15_template', 'customize_spw_post_types' ); function customize_spw_post_types($post_types){ $post_types = array( 'post', 'page' 'custom_post_type' ); return $post_types; } ?>
== Changelog ==, (*12)
0.6.0
*Works with widget section in the theme customizer
*Filter post types globally or per post type (by passing optional argument of widget id in spw_template and spw_post_types filters), (*13)
0.5.1
Changed composer type to wordpress-plugin (was library), (*14)
0.5.0
Bound javascript events on 'body' instead of '.widget' to ensure events persist after destroying/creating widget
Added templating for individual widgets
Added indicator if no posts are selected
Refactored WET code
Updated code comments, (*15)
0.4.1
Added readme, (*16)
0.4
Added filter to allow developers ability to use custom template for widget, (*17)
An easy to use (and extend) widget that allows you to selectively curate posts using a simple drag and drop interface
GPL-3.0+
wordpress widget select posts