[Support request] Hide sub-categories in a list of articles (?)

Home Forums Support [Support request] Hide sub-categories in a list of articles (?)

Home Forums Support Hide sub-categories in a list of articles (?)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #821052
    Luca

    Hello,
    I’m restyling this site:
    http://www.casabuonarroti.it

    I’m using the latest version of GeneratePress Premium (1.7.8) on a staging site:
    Your website URL (only admins can see) ( Password: L@bCultF0ndCR )

    I installed yoast and I activated Bradcrumbs, which work perfectly.

    I decided to change the structure of some items in the old menu.

    I created a main category:
    Attività
    and a series of sub-categories:
    Mostre
    Convegni
    Concerti

    The first item in the menu is a single article in the main category, which is called Attività (like the category it belongs to).

    Obviously, when you click on the main menu item, the result is the list of all the articles belonging to that category, including those of the sub-categories.

    I spent an entire afternoon looking for a solution (including plugins) without success.

    How can I make only that single article (Attività) and its content, appear?

    Thanks in advance for the help you can give me.

    Luca

    #821288
    Leo
    Staff
    Customer Support

    Hi there,

    Not quite sure if I understand.

    So you don’t want the submenu below Attività?

    If so maybe just use a custom link for the menu item that links to that page?
    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/

    Let me know if this helps 🙂

    #821418
    Luca

    I will try to explain better what I need.
    The menu structure is fine as it is now.

    The main item:
    Attività

    and all subheadings:
    Mostre
    Convegni
    Concerti

    When I click on the main item (Attività), article with the same title of the category. I see the article Attività (with its content), but immediately below, also all the articles belonging to the various sub-categories that are part of the category “Attività”.

    I would like to know if it’s possible, when I click on the main item Attività, to leave visible only the article related to that category.

    #821552
    Leo
    Staff
    Customer Support

    Ahh those pages are actually automatically generated by WordPress and GP doesn’t control them.

    I found this through Google that might help:
    https://gist.github.com/CodeProKid/1d21fb7635141491c7c1facd5e99d1ad

    You can see lots of different solutions by Googling “Exclude child categories from a category archive page”

    Let me know if this helps 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.