-
-
Notifications
You must be signed in to change notification settings - Fork 113
Description
disadvantages of list-category-posts-0.81 plugin:
-
I wanted to put two widgets – to display the posts of the “current” and “favorite category”.
If “current category”=”selected category”, then the widgets are duplicated and this cannot be turned off in the plugin.
if you select “exclude category”=1 – then the widget for category 1 does not show anything. -
Similarly, in the widget does not exclude the current post when displaying widgets on the post page! trifle and unpleasant.
—
What I’ve done:
- excluded the current post from the list of posts
- disabled display on exclusion categories
- made the title from the category names and not from the widget name
- one common link for icon and title so that search engines index 1 link and not 2
RU:
Отображать 2 виджета текущая и избранная категория но без дублирования
недостатки плагина list-category-posts-0.81:
-
Я хотел поставить два виджета – для отображения постов “текущей” и “избранной категории”.
Если “текущая категория”=”избранная категория”, то виджеты дублируются и это никак невозможно отключить в плагине.
если выбрать “exclude category”=1 – то виджет для кат 1 ничего не показывает. -
Аналогично в виджете не исключает текущую запись при отображении виджетов на странице записи! мелочь а неприятно.
—
Что я сделал:
- исключил текущий пост из списка постов
- запретил отображение на категориях-исключениях
- сделал заголовок из названий категорий а не из названия виджета
- одна общая ссылка для иконки и заголовка, чтобы поисковики индексировали 1 ссылку а не 2