mrtargets
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Category arrayHello again and thank you very much to all those who thought about this issue.
I will sit down and rewrite the code from start to finish and we’ll see where I land. Believe that I may have thought wrong from the beginning: PForum: Developing with WordPress
In reply to: Category arrayHello again
I do not know how to make me clearer but when I use “parent => 0” I get the following structure:
– Main category
— All posts in the system, no matter what category they are in – parent or child.The way I want the structure to look like is as follows:
– Main category – Should not show
— Subcategory 1 – Print out name och category
— Post in Subcategory 1 – Print out title and image
—- Child to Subcategory 1 – NOT visible
—– Posts in children to subcategory 1 – not shown
— Subcategory 2 – Print out name och category
— Post in Subcategory 2 – Print out title and image
—- Child to Subcategory 2 – NOT visible
—– Posts in children to subcategory 2 – not shownForum: Developing with WordPress
In reply to: Category arrayThanks for your reply.
It was me who had missed a little in my explanation, sorry for that.Here is an updated version of the structure:
– Category 1 (Title)
—- Category 1.1 (Posts in this child category should not be listed on page)
— Post 1 (Title & image)
— Post 2 (Title & image)– Category 2 (Title)
—- Category 2.1 (Posts in this child category should not be listed on page)
— Post 1 (Title & image)
— Post 2 (Title & image)It is by the way a theme I have written myself, no pre-written framework.
Forum: Developing with WordPress
In reply to: Category arrayHi, thank you for your answers.
I have already tested that solution, but unfortunately it does not help me.
Will try to explain the structure of my categories a bit better.The page “Categories” displays;
– Category 1 (Title)
— Post 1 (Title & image)
— Post 2 (Title & image)– Category 2 (Title)
— Post 1 (Title & image)
— Post 2 (Title & image)Current situation that i need to fix look like this:
– Category 1 (Title)
— Post 1 (Title & image)
—- Post 1.1 (Child to “Post 1” – Should not be listed)
— Post 2 (Title & image)– Category 2 (Title)
— Post 1 (Title & image)
—- Post 1.1 (Child to “Post 1” – Should not be listed)
— Post 2 (Title & image)- This reply was modified 6 years, 10 months ago by mrtargets.