Skip to content
develop
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Adapter Post Preview

Show your best posts in any widget area. Creates a widget with a post preview, or a carousel of the most recent posts.

Contributors: ryankienstra
Tags: widgets, post, Bootstrap, mobile, responsive
Requires at least: 3.8
Tested up to: 4.9
Stable tag: 1.1
License: GPLv2 or later
Donate link: http://jdrf.org/get-involved/ways-to-donate/
Requires PHP: 5.4

Build Status

Description

  • Creates a widget with the post's featured image, headline, excerpt, and link.
  • To see the carousel of posts, you must have Bootstrap 3 or later and Glyphicons.
  • Hides the widget if the post is a single post on the page. For example, if you are on the "Hello World" page, you won't see the widget with a preview of "Hello World."
  • The carousel won't show posts that don't have an image.

Play video on YouTube

Installation

  1. Upload the adapter-post-preview directory to your /wp-content/plugins directory.
  2. In the "Plugins" menu, find "Adapter Post Preview," and click "Activate."
  3. Add a "Post Preview" widget by going to the admin menu and clicking "Appearance" > "Widgets"
  4. Select the post you want. You must have Bootstrap to use the carousel.

Frequently Asked Questions

What does this require?

The carousel of recent posts requires Bootstrap 3 or later and Glyphicons.

How can I change the text in the post link?

Put the following in your functions.php file: add_filter( 'appw_link_text', function( $text ) { return 'Keep reading'; } ) // Or your own text.

Screenshots

Changelog

1.1

  • Add PHPUnit testing to ensure stability. See #2.
  • Fix excerpt output when outside the loop. See #10.
  • Refactor plugin bootstrapping. See #4.
  • Refactor carousel class to mainly use a template, add PHPUnit tests. See #9.
  • Add wp-dev-lib as a submodule, with configuration files. See #1.

See the v1.1 project.

1.0.2

  • Fixed height in mobile display.

1.0.1

  • Fixed a bug in Internet Explorer display of the carousel.

1.0.0

  • First version.

Upgrade Notice

1.0.2

Upgrade if you use the carousel. It now has enough height on mobile devices.

1.0.1

No need to update unless you use the carousel. This version fixes its display in Internet Explorer.

About

Plugin on WordPress.org. Create a widget previewing a post, or a carousel of recent posts. Requires Bootstrap 3.

Resources

Packages

No packages published
You can’t perform that action at this time.