Assinging a "primary" category to an entry
-
Hiya
I’m currently looking at porting an existing Movable Type site to WordPress. I’m new to WordPress itself but experienced at web development and am slowly but surely finding my way around.
The site I’m looking to migrate (https://ramblingman.org.uk) already has a design I like and which works well. However the code behind the scenes can be complex. I’m pretty sure most of the site is convertable but there’s one important aspect I’m struggling with.
On the site most articles are assigned to one category only but some are on two categories. But when the article is in multiple categories it’s handled differently depending on the category. Movable Type has this notion of “Primary Category” and others. So you can say “this article sits in Category X” but also gets a link from category Y. By using this notion I can display them differently in X and Y.
For example:
https://ramblingman.org.uk/planningatrip/pennine_way
lives in the following categories:
https://ramblingman.org.uk/planningatrip/ (the primary)
https://ramblingman.org.uk/walks/pennineway/ (the other one)For the design (and indeed the logic of the site structure) to work I want to replicate this somehow in WordPress but my research hasn’t found a way of doing it using categories. I did wonder if I could hack it slightly by using Categories for the primary and Tags for the secondary but I was wondering if anyone else has tried to do something similar and has found a better way?
If you’ve any suggestions they really would be much appreciated.
- The topic ‘Assinging a "primary" category to an entry’ is closed to new replies.