- 11/04/2018 at 16:42 #450
on Home page, I would like to display only the parent-category, because I also have sub-categories for articles
can you give me a code and tell me where to add it
(currently the article only displays the sub-category)
11/04/2018 at 19:44 #452
- This topic was modified 3 months, 1 week ago by polov.
That will require lots of code customization work. So, if you can code that on your own then, you can achieve the same via the child theme: https://napitwptech.com/tutorial/wordpress-development/tutorial-creating-wordpress-child-theme/
Bishal Napit12/04/2018 at 15:11 #454
ok, i have a child theme
but can you tell me at which location you have placed the category view on the homepage, which code and in which .php page?
I do not find
thanks13/04/2018 at 05:46 #455
For the home page, you need to modify the file: index.php with custom query on the child theme.
Bishal Napit13/04/2018 at 14:03 #456
custom query? I do not know how to do that
but thanks14/04/2018 at 05:46 #457
What I mean to say is, you might need to use custom WP_Query: https://codex.wordpress.org/Class_Reference/WP_Query to achieve the same via child theme. Hope you have got it now.
Bishal Napit21/04/2018 at 14:46 #460
but I will cancel my search and use the TAGS, it works for me
thanks23/04/2018 at 09:12 #461
You must be logged in to reply to this topic.