Title: Categorized options.
Last modified: January 7, 2022

---

# Categorized options.

 *  [yordanandreev](https://wordpress.org/support/users/yordanandreev/)
 * (@yordanandreev)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/categorized-options/)
 * Hello,
    I use this plugin for displaying news. I have several categories which
   are named after the years. For example: 2021/2020/2019 and etc. When you are 
   the 2020 news on the right side(widget), displays all the 2020 news, but when
   you click on exact post, on the right side is shown the latest year or in my 
   case 2021. I would like to display the news from the year you are reading the
   post. If you read the 2019 post to display all posts categorized with 2019.
 * Sorry for my English, haven’t used it for a while. 😀
 * Thank you in advance !
    Best regards !
 * P.S. I hope its clear enough, but if its not just ask me.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/categorized-options/#post-15255149)
 * So you say your posts are categorized based on years? In that case you can just
   use the `categorypage=yes` parameter. See the [documentation](https://github.com/picandocodigo/List-Category-Posts/wiki/How-to-select-which-posts-to-show).
 *  Thread Starter [yordanandreev](https://wordpress.org/support/users/yordanandreev/)
 * (@yordanandreev)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/categorized-options/#post-15267387)
 * Not working.
    The thing is I use it from the widget menu not with short codes.
   I tried with short codes and still not working properly but i thing u didnt understood
   me.(which is totally normal). I will try to explain one more time.
 * You open the news and it shows all the news from the past years. In the menu “
   News” there are the submenu buttons “2020”,”2019″ and so on, which are links 
   to the categories.
    The widget stays at the right side of the page(Blog side 
   bar). When you are at 2021(default year i guess(but its set as “current year”),
   shows properly. When you go through submenu and open year 2019 still works fine
   but when click an exact post from 2019 widgets starts to show posts from 2021
   not from current year/category.
 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/categorized-options/#post-15276614)
 * Please share the configuration of the widget or the shortcode you are using to
   display the LCP content in your sidebar.
 *  Thread Starter [yordanandreev](https://wordpress.org/support/users/yordanandreev/)
 * (@yordanandreev)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/categorized-options/#post-15336129)
 * > [View post on imgur.com](https://imgur.com/2iepqNP)
 * > [View post on imgur.com](https://imgur.com/8wxJM8P)
 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/categorized-options/#post-15341065)
 * Do these news posts have any other categories assigned, other than years?
 *  Thread Starter [yordanandreev](https://wordpress.org/support/users/yordanandreev/)
 * (@yordanandreev)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/categorized-options/#post-15391692)
 * They are set like :
    Category: News Sub-cat: 2020(or different year)
 * P.S. Sorry for responding slow.
 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/categorized-options/#post-15394292)
 * This is the reason of your problem, the posts have two categories and when you
   use `categorypage=yes` it grabs all posts which have any of these categories,
   so it just selects all posts with the “News” category. To get what you want you
   should use `categorypage=all` to select posts that have all the categories of
   the current post.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Categorized options.’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/categorized-options/#post-15394292)
 * Status: not resolved