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

Featured Category Widget

描述

The Featured Category Widget is mainly designed because there were people for whom the Featured Post Widget was not enough. They wanted to put a category of their blog in the highlight.
If there is a post thumbnail, it will be displayed above the headline of the post. If there is no thumbnail, the first picture of the post is taken. You can set the size for the thumbnail or just take the standard from your options. Decide yourself, whether you want to show the excerpt, saved with your post or just the first three sentences or the first twenty words of the post. Style the widget individually, ready.

The Featured Category was tested up to WP 4.5. It should work with versions down to 2.9 but was never tested on those.

屏幕截图

  • The plugin’s work on our testing page
  • The widget’s settings section

安装

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

常见问题

I styled the widget container myself and it 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.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

「Featured Category Widget」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

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

对开发感兴趣吗?

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

更新日志

2.5

  • WP 4.5 ready
  • New framework

2.4.1

  • forgotten var_dump() taken out

2.4

  • WP 4.3 ready
  • New framework

2.3.1

  • bug with visiblity fixed

2.3

  • WP 4.1 ready
  • New framework

2.2.2

  • Mistake in image class fixed

2.2.1

  • Interference with WordPress Page Widgets eliminated

2.2

  • Bug fixed with featured images

2.1

  • Posts now sortable in alphabetical order
  • DSS compressable

2.0.1

  • Made compliant with WP 3.9.1 and small bugfix

2.0

  • New feature to have post of the main loop in the widget on single pages

1.9

  • All ‘Devided by Zero’ errors should be eliminated

1.8

  • Improvement in image recognition, more flexible

1.7.1

  • image border added and some streamlining done

1.7

  • streamlined code
  • alignment of the thumbnail now possible
  • you can show the post date
  • more responsive

1.6

  • adjustments in the framework
  • some more customizing was asked

1.5

  • you can now link the widget title to the displayed category

1.4

  • possibility to change size of thumbnail added; small bug fixed

1.3

  • small bugfix in auto excerpt

1.2

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

1.1

  • possibility to choose random posts

1.0

  • initial release