• Resolved ankurj

    (@ankurj)


    Thanks for the excellent plugin.

    I am looking for a help around Child category, so here is my structure.

    Category 1
    Child-Category of 1
    Category 2
    Child-Category of 2
    Category 3
    Child-Category of 3

    In a given post sidebar, I am able to list all posts that belong to that particular category.
    I now also want to list the child-category posts under a separate widget title for a given parent category dynamically without specifying the category slug or number anywhere.

    For example :

    If I am in a post say xyz.com/cat1/post-slug1
    OR
    xyz.com/cat1/child-cat1/post-slug2

    In the sidebar, I would want this structure in both the cases

    Cat1
    List of All posts of Cat1
    ^^^ This I have already achieved. I want to get this
    Child-Cat1
    List of All posts of Child-Cat1

    I have tried various things in your plugin but somehow I am not able to retrieve posts of child category for a given parent category.
    Let me know if I was able to explain my query. I can do a video if you need more info from me.

Viewing 1 replies (of 1 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello @ankurj,
    currently, the plugin cannot display (or create) dynamically a new widget that displays the posts of the child category. This requires a totally new section of coding.

    Anyway, a solution could come from the Widget Logic plugin. This solution is advisable only if you do not have many categories.

    That plugin can display the widgets under certain conditions. In this situation, you can set up a widget that grabs the posts of a child category. Then, using the field created by Widget Logic at the bottom of the widget, you can indicate when the widget will be visible.

    Let me know, please.

Viewing 1 replies (of 1 total)
  • The topic ‘Display all posts of Child Category For a Given Parent Category’ is closed to new replies.