• Resolved ohlaprida

    (@ohlaprida)


    Hi, the plugin is excelent. I have use and no problem.
    Its posible to show the category from the post in the top 10?
    I try to add them but it cant.
    I mean, show Category from every post before Title, in the widget top 10?
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Ajay

    (@ajay)

    Thread Starter ohlaprida

    (@ohlaprida)

    Ok many thanksfor you reply fast.
    Where i have upload that file? O where i paste the code?
    Thanks

    Plugin Author Ajay

    (@ajay)

    This would go into your theme’s functions.php or a file in wp-content/mu-plugins/

    Thread Starter ohlaprida

    (@ohlaprida)

    Thanks for the help. I just pasted the code into functions, but I can’t see the categories in the widget block.

    Also try copying the tptn_list_cats.php file into the folderwp-content/mu-plugins/, but it can’t be seen.

    My intention is that the category of each post in the Top Post widget could also show the category of that article. This is what I am trying to get:

    https://www.ohlaprida.com.ar/wp-content/uploads/notas/topcategories.png

    Neither I didn see the option in the admin panel of the post.

    It’s possible? Thank you, I would appreciate if you help me tell me what I am doing wrong.Thanks

    Plugin Author Ajay

    (@ajay)

    I just ran the code again through my test install and I can see the category/tag being added – note that the tptn_list appears at the end of each item and not the beginning.

    This shows the category of the post item in the list just after the title.

    • This reply was modified 4 years, 1 month ago by Ajay.
    Thread Starter ohlaprida

    (@ohlaprida)

    Many thanks, now i can see the categories bellow the title in the widget.
    Is posible to show only one category? Because show all. I would like to show the primary category of the post, only one. Is that posible? limit the categories to show in the widget to 1. Thanks

    Plugin Author Ajay

    (@ajay)

    Please see this post for code on the primary category. You’ll need to make changes to my code above.

    https://travis.media/get-the-primary-category-of-a-post/

    Thread Starter ohlaprida

    (@ohlaprida)

    Thanks for the reply. I already add the code to the theme. I need help for the primary category upgrade.

    I add the code of this link (https://travis.media/get-the-primary-category-of-a-post/), but the widget not show the primary category of each post. It show all categories.

    What would i have to modify in the code of the plugin to show primary category? Many thanks!

    You can see mi web here: https://bit.ly/39nypTY

    Plugin Author Ajay

    (@ajay)

    @ohlaprida

    What is the exact code that you are using right now as it requires you to mix what was in the link above with the link I posted from github

    Hi,

    i used ur code to show category and it works .. only problem is that it shows title, excerpt and category after that .. is there way to show category between title and excerpt?

    Thank you in advance

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Show category on widget?’ is closed to new replies.