Load different article categories on different pages
This support request was posted in Flatbase by valorizza
- valorizza February 24, 2017 at 12:00 pm
Hey there!
Would it be possible to, for example, have article categories A, B, C and D, and pages 1 and 2.
Then, load categories A and B on knowledge base page 1, and load categories C and D on knowledge base page 2?Also, could I hide categories from the homepage? Like, have the C category display on page 2, but be hidden on the homepage.
Thanks in advance!
Juanfra Aldasoro February 24, 2017 at 2:04 pmHi,
Thank you for writing. I hope you are doing well.
I’m not sure if I’m getting you. But you can use the [nice_knowledgebase] to display the knowledgebase in different pages.
Regarding the exclusion of categories on the home page, you can use the following code in your functions.php file: https://gist.github.com/juanfra/84740a8eaafcaf032203
To get the ID of the category, you will need to go to “Articles > Categories” and then click on any you want. In the URL you will need to check the numeric value after tag_ID=.
Best,
Juan.valorizza February 28, 2017 at 2:47 pmSorry Juan, my post really was very confusing.
What I need to do is to load the articles from a certain category on a regular page, basically the way it loads the articles if I click on a category on the homepage. I think I found a shortcode for that on another support post, but I can’t find it anymore.
valorizza February 28, 2017 at 4:20 pmHello again Juan!
So I found the post where I saw the shortcode before: https://nicethemes.com/forums/topic/creating-pages-with-especif-categories-of-knowledge-base/
I made sure I’m using the correct ID, but it didn’t work.
Juanfra Aldasoro March 1, 2017 at 2:47 pmHi,
Thank you for the follow-up.
Would you please paste here, literally the shortcode you are using?
Thank you,
Juan.
You must be logged in to reply to this topic.