WordPress in an article at the same time belong to two categories, you can make this article in different categories to call different templates?
Source: Internet
Author: User
Help: WordPress In an article at the same time belong to two categories, you can make this article in different categories to call different templates?
If the article belongs to both category A and category B, there is a list of articles in the foreground category A and category B two pages, can be implemented from the Category A list click on the article to call a template, from the B list click the article call another template?
------to solve the idea----------------------
Add a parameter after the link address class=a
------to solve the idea----------------------
B
The target page then displays the corresponding template according to the class.
Because your article belongs to more than one class at the same time, there is no specific representation, and it does not know which class template to display
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.