Image Widget
Image Widget is a simple plugin that uses the native WordPress media manager to add image widgets to your site. Image Widget Features Responsive MU Compatible Handles image resizing and alignment Link the image Add title and description Versatile – all fields are optional Upload, link to external image, or select an image from your media collection Customize the look & feel with filter hooks or theme overrides Quality You Can Trust Image Widget is developed and maintained by The Events Calendar, the same folks behind The Events Calendar, Event Tickets, and a full suite of premium plugins. This plugin is actively supported by our team and contributions from community members. If you see a question in the forum you can help with or have a great idea and want to code it up or submit a patch, that would be awesome! Not only will we shower you with praise and thanks, it’s also a good way to get to know us and lead into options for paid work if you freelance. Pull Requests & Translations Check us out on GitHub to pull request changes. Translations can be submitted here on WordPress.org. Documentation The built in template can be overridden by files within your template. Default vs. Custom Templates The Image Widget comes with a default template for the widget output. If you would like to alter the widget display code, create a new folder called “image-widget” in your template directory and copy over the “views/widget.php” file. Edit the new file to your hearts content. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release. New in 3.2: You may now also use the “sp_template_image-widget_widget.php” filter to override the default template behavior for .php template files. Eg: if you wanted widget.php to reside in a folder called my-custom-templates/ and wanted it to be called my-custom-name.php: add_filter('sp_template_image-widget_widget.php', 'my_template_filter'); function my_template_filter($template) { return get_template_directory() . '/my-custom-templates/my-custom-name.php'; } Filters There are a number of filters in the code that will allow you to override data as you see fit. The best way to learn what filters are available is always by simply searching the code for ‘apply_filters’. But all the same, here are a few of the more essential filters: widget_title This is actually a pretty typical filter in widgets and is applied to the widget title. widget_text Another very typical widget filter that is applied to the description body text. This filter also takes 2 additional arguments for $args and $instance so that you can learn more about the specific widget instance in the process of filtering the content. image_widget_image_attachment_id Filters the attachment id of the image. Accepts additional $args and $instance arguments. image_widget_image_url Filters the url of the image displayed in the widget. Accepts additional $args and $instance arguments. THIS IS DEPRECATED AND WILL EVENTUALLY BE DELETED image_widget_image_width Filters the display width of the image. Accepts additional $args and $instance arguments. image_widget_image_height Filters the display height of the image. Accepts additional $args and $instance arguments. image_widget_image_maxwidth Filters the inline max-width style of the image. Hint: override this to use this in responsive designs 🙂 Accepts additional $args and $instance arguments. Return null to remove this css from the image output (defaults to ‘100%’). image_widget_image_maxheight Filters the inline max-height style of the image. Accepts additional $args and $instance arguments. Return null to remove this css from the image output (defaults to null) image_widget_image_size Filters the selected image ‘size’ corresponding to WordPress registered sizes. If this is set to ‘tribe_image_widget_custom’ then the width and height are used instead. Accepts additional $args and $instance arguments. image_widget_image_align Filters the display alignment of the image. Accepts additional $args and $instance arguments. image_widget_image_alt Filters the alt text of the image. Accepts additional $args and $instance arguments. image_widget_image_link Filters the url that the image links to. Accepts additional $args and $instance arguments. image_widget_image_link_target Filters the link target of the image link. Accepts additional $args and $instance arguments. image_widget_image_attributes Filters a list of image attributes used in the image output. Similar to ‘wp_get_attachment_image_attributes’ Accepts $instance arguments image_widget_link_attributes Filters a list of attributes used in the image link. Similar to ‘wp_get_attachment_image_attributes’ Accepts $instance arguments Have You Supported the Image Widget? If so, then THANK YOU! Also, feel free to add this line to your wp-config.php file to prevent the image widget from displaying a message after upgrades. define( ‘I_HAVE_SUPPORTED_THE_IMAGE_WIDGET’, true ); For more info on the philosophy here, check out our blog post
Top keywords
- image56×6.77%
- widget33×3.99%
- image widget21×2.54%
- filters18×2.18%
- instance15×1.81%
- arguments14×1.69%
- accepts13×1.57%
- instance arguments13×1.57%
- additional12×1.45%
- args12×1.45%
- args and instance12×1.45%
- image widget image12×1.45%
Ultimate Post List
Make up custom-tailored preview lists of your website’s contents easily and place them in widget areas and post contents. Promote your website’s content with many kinds of post lists. No programming skills are necessary. No fiddling with templates. With just a few keyboard entries and clicks you get a customized posts list. The plugin Ultimate Post List for WordPress gives you an easy-to-use toolbox to make lists of posts. You can insert the lists as widgets in every widget area per drag’n’drop easily via configurable shortcodes in every post content via calls of the function upl_get_html() in PHP code You can switch between a vertical list layout or a responsive grid layout. A few options help you to get a nice layout without any need to code. You can filter the posts by their post type “Post” or/and “Page” and by multiple categories. For filtering by custom post types check out Ultimate Post List Pro. You can switch on a “Load more posts” link or button which loads further posts without leaving the page. Its text is controlled easily for you. The plugin is multi-widget capable. That is, you can have several widgets of Ultimate Post List on your blog, each with its own settings! You can clone (duplicate, copy) every list with a single click on the action link. The plugin does not collect any personal data, so it is ready for EU General Data Protection Regulation (GDPR) compliance. Demo You want to test Ultimate Post List before installing on your site? Try it out on your individual and free WordPress playground and click here. Options you can set The free version of Ultimate Post List offers you many options to type and click customized post lists easily. These are the options: List Options List Display Options List Visibility Text if no posts List Title Options List title URL of list title HTML element of list title Post List Options Post List Options In General Number of posts Posts offset Hide current viewed post in list Show sticky posts on top of the list Posts Sort Order Order by Post date Post title Post author Order direction Ascending Descending Post Filter Options Post Type Filter Show posts of selected types: posts or/and pages Category Filter Show posts of selected categories only Show only posts that are in all selected categories Post List Item Options Post Data Order Position of post thumbnail Position of post title Position of post date Position of post author name Position of post excerpt Post Display Options Show post thumbnail (default) Show post title (default) Show post date Show post author name Show post excerpt Post Links Options Set post title clickable (default) Set post thumbnail clickable (default) Set post date clickable, pointing to the month archive Set post author clickable, pointing to the author’s archive Set post excerpt clickable Open post links in new windows Post Title Options Maximum length of post title Text after shortened title Post Date Options Format of the post date (over 100 options available) Post Thumbnail Options Source of the post thumbnail Featured image First post content image if previously uploaded to the media library Featured image if the first post content image is not available First post content image if the featured image is not available Avatars of post authors Use post title as the alternative text for the thumbnail Use default thumbnail if no image could be ascertained URL of default thumbnail Thumbnail size Width of thumbnail in px Height of thumbnail in px Use aspect ratios of original images Alignment of thumbnail Align left Align center Align right Top image margin width in px Bottom image margin width in px Left image margin width in px Right image margin width in px Flow of text at the thumbnail (wrap right/left or side by side) Post Excerpt Options Maximum length of post excerpt Text after shortened excerpt Ignore post excerpt field as excerpt source Ignore post content as excerpt source “More” Element Options “More” Element Appearance Show a clickable “More” element for loading further list items at the bottom of the list “More” element type Show element as a link Show element as a button Label of “More” element Show icon while new posts are loaded Icon style Small icons Small gray circle with rotating dot Small turning wheel Big icons Big gray circle with rotating dot Big turning wheel Text that appears when no further posts have been found List Layout Options List Layout Type: vertical list or responsive grid Grid item width in px Minimal height of grid item in px List Item Margin Options Top item margin in px Bottom item margin in px Left item margin in px Right item margin in px Additional options in the Pro version The Pro version has all the options of the free version and many additional options for layouts, numbered lists, colors, custom post types and much more. Go to Ultimate Post List Pro. Pro users get premium support whilst free support is offered in the WordPress forums in our spare time. Support Support for this plugin will be provided in the form of Product Support. This means that we intend to fix any confirmed bugs, listen to ideas for this plugin and improve the user experience when enhancements are identified and can reasonably be accommodated. Pro users get premium support whilst free support is offered in the WordPress forums in our spare time. If you are having trouble with this plugin in your particular installation of WordPress, we will not be able to help you troubleshoot the problem.