Plugin on WordPress.org. Create a widget previewing a post, or a carousel of recent posts. Requires Bootstrap 3.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
dev-lib @ c6992d7
php
tests/php
.editorconfig
.gitignore
.gitmodules
.travis.yml
adapter-post-preview.php
composer.json
contributing.md
package.json
phpcs.xml
phpunit.xml.dist
readme.md
readme.txt
svn-url

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.