Advanced Random Posts Widget

Описание

This plugin will enable a custom, flexible and advanced random posts. It allows you to display a list of random posts via shortcode or widget with thumbnail, excerpt and post date, also you can display it from all or specific or multiple taxonomy.

Features Include

  • Allow you to set title url.
  • Display thumbnails, with customizable size and alignment.
  • Display excerpt, with customizable length.
  • Display from all, specific or multiple category.
  • Display from all, specific or multiple tag.
  • Display from all, specific or multiple taxonomy.
  • Отображение даты записи.
  • Display post modified date.
  • Типы записей.
  • Статус записи.
  • Allow you to set custom css class per widget.
  • Add custom html or text before and/or after random posts.
  • Multiple widgets.

Поддержка

Разработано Theme Junkie

Shorcode Explanation

Объяснение атрибутов шорткода:

Основной шорткод

[arpw]

Отображение 10 случайных записей

[arpw limit="10"]

Display with thumbnail and set the size

[arpw thumbnail="true" thumbnail_size="arpw-thumbnail"]

Display posts based on category by id

[arpw thumbnail="true" cat="10"]

Отображение типа записи portfolio

[arpw post_type="portfolio"]

Here’s the full default shortcode arguments

title=""
offset=""
limit="5"
post_type="post"
post_status="publish"
ignore_sticky="1"
taxonomy=""
cat=""
tag=""
thumbnail="false"
thumbnail_size="arpw-thumbnail"
thumbnail_align="left"
excerpt="false"
excerpt_length="10"
date="false"
date_modified="false"
date_relative="false"
css_class=""
before=""
after=""

Скриншоты

  • Настройки виджета

Установка

Through Dashboard

  1. Log in to your WordPress admin panel and go to Plugins -> Add New
  2. Type advanced random posts widget in the search box and click on search button.
  3. Find Advanced Random Posts Widget plugin.
  4. Then click on Install Now after that activate the plugin.
  5. Go to the widgets page Appearance -> Widgets.
  6. Найдите виджет Случайные записи.

Установка с помощью FTP

  1. Загрузите плагин на свой жёсткий диск.
  2. Unzip.
  3. Upload the advanced-random-posts-widget folder into your plugins directory.
  4. Log in to your WordPress admin panel and click the Plugins menu.
  5. Then activate the plugin.
  6. Go to the widgets page Appearance -> Widgets.
  7. Найдите виджет Случайные записи.

Часто задаваемые вопросы

Инструкции по установке

Through Dashboard

  1. Log in to your WordPress admin panel and go to Plugins -> Add New
  2. Type advanced random posts widget in the search box and click on search button.
  3. Find Advanced Random Posts Widget plugin.
  4. Then click on Install Now after that activate the plugin.
  5. Go to the widgets page Appearance -> Widgets.
  6. Найдите виджет Случайные записи.

Установка с помощью FTP

  1. Загрузите плагин на свой жёсткий диск.
  2. Unzip.
  3. Upload the advanced-random-posts-widget folder into your plugins directory.
  4. Log in to your WordPress admin panel and click the Plugins menu.
  5. Then activate the plugin.
  6. Go to the widgets page Appearance -> Widgets.
  7. Найдите виджет Случайные записи.
No image/thumbnail options?

Your theme needs to support Post Thumbnail, please go to https://codex.wordpress.org/Post_Thumbnails to read more info and how to activate it in your theme.

Размер миниатюры

By default it uses arpw-thumbnail which have 50×50 size. If you want to use custom image size, you can install https://wordpress.org/plugins/simple-image-sizes/ then create new image size, it will appear in the Размер миниатюры selectbox in the widget option.

Thumbnail Size Not Working Properly

I have mentioned it in the plugin description. If you use images that were uploaded to the media library before you installed this plugin and/or you have your own custom image sizes, please install Regenerate Thumbnails plugin to fix the image size.

Как добавить произвольный стиль?

The plugin comes with a very basic style, if you want to add custom style please do wp_dequeue_style to remove the default stylesheet. Place the code below in your theme functions.php.

function prefix_remove_arpw_style() {
    wp_dequeue_style( 'arpw-style' );
}
add_action( 'wp_enqueue_scripts', 'prefix_remove_arpw_style', 10 );

Then you can add your custom style using Custom CSS plugin or in your theme style.css. Here’s the plugin selector

/* ul */
.arpw-ul {}

/* li */
.arpw-li {}

/* title */
.arpw-title {}

/* thumbnail */
.arpw-thumbnail {}

/* date */
.arpw-time {}

/* excerpt */
.arpw-summary {}

Отзывы

Useless without showing full content of posts

Very frustrating. I want the widget to display the_content of the post(s), not merely the title or excerpt. This has been requested before, and someone even apparently wrote a patch and did a pull request, but apparently it was not accepted.
https://wordpress.org/support/topic/include-random-posts-full-content-rather-than-just-the-excerpt/

Not really working

I was looking to have the posts side-by-side, not stacked.
But regardless, with thumbnails enabled the posts don’t stack correctly either; each subsequent post is indented from the last, resulting in the posts being arranged at a 45-degree angle down the page.

*Not related to this plugin, but it really sucks that plugin reviews can’t contain screenshots.

Perfect features, no bloat

I am absolutely satisfied and so happy this plugin exists. I use VIMEO PRO to post videos on my membership site. So I used this plugin together with the Automatic Featured Images from Videos plugin.

This plugin is coded beautifully and perfectly with just the right amount of features and options. No bloat. Thank you! (Tell me where to donate…I would love to support.)

Посмотреть все 30 отзывов

Участники и разработчики

«Advanced Random Posts Widget» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Advanced Random Posts Widget» переведён на 2 языка. Благодарим переводчиков за их работу.

Перевести «Advanced Random Posts Widget» на ваш язык.

Заинтересованы в разработке?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Журнал изменений

2.1.1 — Oct 19, 2017

  • Техническое обновление
  • Поддержка WordPress 4.8.2

2.1.0 — Nov 06, 2015

  • UI Changes!
  • Filter arpw_query DEPRECATED
  • Change text domain to advanced-random-posts-widget
  • Remove title attribute in the post link
  • Sanitize after and before the posts with wp_kses_post, security purpose
  • Introducing new hook arpw_before_loop_WIDGETID & arpw_after_loop_WIDGETID
  • Inline default style, no more load extra file from the plugin
  • Sanitize Custom CSS, better security