Beskrivning
There are times when you’d like to have a certain type of post appear in a widget for use in your sidebar or (in some themes) your header or footer.
I used this to display a random senryu on each page, but it will work equally well for any group of reasonably small posts.
There is the option to include the title of the post, the title of the widget, both titles, or neither.
If you want you can add a bunch of widgets, each showing up to five random posts from a different category.
Installation
Installing is pretty easy takes only a minute or two.
-
Upload ’random-one-cat-widget’ directory to your ’/wp-content/plugins/’ directory.
-
Activate the plugin through the ’Plugins’ screen in WordPress.
-
On the ’Widgets’ sub-menu of ’Appearance’ you will find a new widget type called ’Random One Cat’.
-
Add one or more of these to your themes widget display areas.
-
For each widget you add, select a title and category, then decide how you’d like to see the title or custom fields.
-
Spara dina inställningar.
Recensioner
Detta tillägg har inga recensioner.
Bidragsgivare och utvecklare
”Random One Cat Widget” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personer”Random One Cat Widget” har översatts till 1 språk. Tack till översättarna för deras bidrag.
Översätt ”Random One Cat Widget” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
2.4.1
- Fixed issue with a php7.2 depreciation during plugin activation (bug fix)
2.4
- Increased maximum posts that can be shown to eight
2.3
- Added the option to shorten posts to the More… marker
2.2
- Added an unordered list for title only displays
2.1
- Fixed custom field bug
- Fixed empty value issue
- Added option to display only title links
- Tidied widget parameter selection
- Multi-lingual ready (translations required)
2.0
- Added Changelog
- Added option to display up to five posts
- Fixed empty post-meta ul display bug
- Moved to WP_Widget class
1.3
- Added selection for widget title
- Added option to choose which titles display
1.2
- Updated for 2.9
- Added short-code display
1.1.2
- Minor updates to code layout for 2.8
1.1.1
- Minor updates to code layout for 2.7
1.1
- Updated for 2.6
- Fixed random selection bug in WordPress 2.6
1.0
- First Production Release
0.4
- Added option for custom field display
0.3
- Updated for 2.5.1 compatibility
0.2
Complete overhaul for 2.5 compatibility
0.1
Första version