I wanted to combine multiple categories in one Menu item
I checked this dicussion, someone said:
You'd have to make a custom link for that.
Make your URL /?cat=(id-white),(id-rabbit)
Below is my link but can't show the correct categories. ID is correct.
/?cat=(id-32),(id-33)
I wanted to combine multiple categories in one Menu item
I checked this dicussion, someone said:
You'd have to make a custom link for that.
Make your URL http://www.example/?cat=(id-white),(id-rabbit)
Below is my link but can't show the correct categories. ID is correct.
http://example/?cat=(id-32),(id-33)
Share Improve this question asked Jul 17, 2018 at 0:52 Kho KenixiexKho Kenixiex 651 silver badge8 bronze badges 1- What do you mean by “combine”? Should it display posts that have one of these categories or posts that have both? – Krzysiek Dróżdż Commented Jul 17, 2018 at 5:37
3 Answers
Reset to default 2You misunderstood the quote, the URL needs to be
http://example/?cat=32,33
I just tested it and it seems to work. However, the title was only one of the categories' name, there might be other problems with this solution.
Use the URL like this, it will show the content of both categories:
http://example/?cat=id-32+id-33
This will show the content of both categories:
/product-category/spring-summer+pumps/