hyperlink to select post categories with URL
-
I am using page category plus to categorize my wordpress pages. I have 18 pages, each categorized as a different food, e.g. oranges.
Using the plugin, I am able to useget_the_category();
from each of my product pages. I was planning to use that value to generate a link on each page to recipes that contain that product using$category[0]->cat_nicename
and passing that value to href.A small complication, however, is that “recipes with oranges” needs to link to a page with posts categorized as both “oranges” (id 14) and “recipes” (id 4). I was trying to see if both categories could be passed to the url – either by using the url structure itself (e.g. …/recepes/oranges) as suggested hereor by specifying the categories with php ( e.g.
?cat=4,14
) but neither of those work.One strange thing I noticed is that *any* url that starts with “https://protogeo.info/wordpress_v2/” and ends with “arroz_valencia” (a category slug) will list posts in that category:
https://protogeo.info/wordpress_v2/category/arroz_valencia
https://protogeo.info/wordpress_v2/arroz_valencia
https://protogeo.info/wordpress_v2/pig-latin-google-breath/arroz_valenciaIs this an anomaly of k2? Any ideas on an approach to my problem
would be ultra appreciated ;-).
- The topic ‘hyperlink to select post categories with URL’ is closed to new replies.