Skip to content

Display 2 widgets current and favorite category but no duplication #500

@v-o-v-a-n

Description

@v-o-v-a-n

https://wordpress.org/support/topic/display-2-widgets-current-and-favorite-category-but-no-duplication/

disadvantages of list-category-posts-0.81 plugin:

  1. 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.

  2. 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:

  1. Я хотел поставить два виджета – для отображения постов “текущей” и “избранной категории”.
    Если “текущая категория”=”избранная категория”, то виджеты дублируются и это никак невозможно отключить в плагине.
    если выбрать “exclude category”=1 – то виджет для кат 1 ничего не показывает.

  2. Аналогично в виджете не исключает текущую запись при отображении виджетов на странице записи! мелочь а неприятно.

Что я сделал:

  • исключил текущий пост из списка постов
  • запретил отображение на категориях-исключениях
  • сделал заголовок из названий категорий а не из названия виджета
  • одна общая ссылка для иконки и заголовка, чтобы поисковики индексировали 1 ссылку а не 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions