该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Featured Post Widget

描述

The Featured Post Widget is a fully customizable widget, that displays a single post. You can decide, whether or not the post thumbnail is displayed, whether the post title is above or beneath the thumbnail and a couple of more things. And of course, you can style the widget individually.

屏幕截图

  • The plugin's work on our testingsite
  • The widget's settings section

安装

  1. Upload the post-feature-widget folder to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Place and customize your widgets
  4. 准备

常见问题

How do I get the image more responsive ?

If the widget container is smaller than the image size, the image will automatically be adjusted to the widget size. In other words, just choose some width for the image that is larger than your widget area and it will always have the right size.

I styled the widget container myself and i looks bad. What do I do?

The styling of the widget requires some knowledge of css. If you are not familiar with that, try adding

padding: 10px;
margin-bottom: 10px;

to the style section.

My widget should have rounded corners, how do I do that?

Add something like

-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;

to the widget style. This is not supported by all browsers yet, but should work in almost all of them.

My widget should have a shadow, how do I do that?

Add something like

-moz-box-shadow: 10px 10px 5px #888888;
-webkit-box-shadow: 10px 10px 5px #888888;
box-shadow: 10px 10px 5px #888888;

to the widget style to get a nice shadow down right of the container. This is not supported by all browsers yet, but should work in almost all of them.

评价

阅读所有5条评价

贡献者及开发者

“Featured Post Widget” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Featured Post Widget”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

4.2.1

  • Automatic hyphation deletable

4.2

  • WP 4.5 ready
  • New framework

4.1.2

  • bugfix

4.1.1

  • more accurate style sheet
  • infinite loop in some special cases fixed

4.1

  • WP 4.3 ready
  • New framework

4.0

  • WP 4.1 ready
  • New framework

3.9.3

  • Mistake in image class fixed

3.9.2

  • Interference with WordPress Page Widgets eliminated

3.9.1

  • small bugfix

3.9

  • DSS compressible
  • bugfix

3.8.1

  • Small bugfix

3.8

  • Code correction

3.7

  • All ‘Devided by Zero’ errors should be eliminated

3.6

  • Improvement of image recognition, more flexible

3.5

  • code streamlined and options added

3.4.1

  • small bugfix

3.4

  • all possible errors that could cause the image to not resize are fixed
  • some small features added (possibility to give a post ID, order of the headline, date, excerpt etc.)

3.3

  • small bugfixes and changes in the plugin framework
  • loads of new features added such as aligning the thumbnail and the text, displaying the date etc.

3.2

  • code overhaul
  • hooks into the Ads Easy Plugin if Google AdSense Tags are in use

3.1

  • Better functionality getting the excerpt
  • Fetches the first image also, when working with galleries

3.0

  • Some streamlining done, more fool proof.

2.1

  • Minor bugfix, showing the excerpt.

2.0

  • The widget now supports a customizable ‘read more’ link.

1.9

  • Trying to get expandable textareas work.

1.8.2

  • Bugfix with backup post; plugin works now also with slugs.

1.8.1

  • Small bugfix with the backup post.

1.8

  • A second post can now be defined as a backup, that will show up, if the widget is showing on a single post page, showing the feaured post. Just to avoid doublettes.

1.7

  • Small changes in the handling that provide more accurate working.

1.6

  • Dutch translation added.

1.5

  • German translation added.

1.0

  • Initial release