- This topic has 8 replies, 2 voices, and was last updated 3 years, 6 months ago by
Tom.
-
AuthorPosts
-
October 28, 2018 at 11:44 am #712561
Purushottam
Hi there, I would like to show multiple taxonomies on my elements header, single posts page. here’s what i have so far:
In ACF, I am creating two new custom taxonomy select fields, Skill level( absolute beginner, beginner, etc) and Type(concept, actionable, research) and assign to posts while creating them.
here’s the header card element html:
<p>
Written By: {{post_author}}
<br/>
Published on: {{post_date}}
<br/>
Category: {{post_terms.category}}
<br/>
Type: {{custom_field.type}}
<br/>
Skill Level: {{custom_field.skill_level}}
</p>
1. I want to display the particular taxonomy with link so one can click on for eg. “Absolute beginner”(skill Level) or “Actionable”(type) and get an archive of all the posts with skill level set to “Absolute Beginner” and likewise
2. Is it possible to do this without using advanced custom fields? or even without editing php code?Free Summarizer Tool
WordPress Maintenance Services
WordPress Speed Optimization
BagItToday
Create Content That ranks, At ScaleGP Premium 1.7.2October 28, 2018 at 8:47 pm #712733Tom
Lead DeveloperLead DeveloperHi there,
Are those custom taxonomies, or are they custom fields?
The code above will output custom fields.
If they’re custom taxonomies, you would do this:
{{post_terms.type}} {{post_terms.skill_level}}
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 29, 2018 at 1:15 am #712810Purushottam
{{post_terms.type}}
{{post_terms.skill_level}}
Above does not work. I thinks I have created custom fields(taxonomy type) using ACL.
The code that I am using , (Type: {{custom_field.type}}) returns me only the taxonomy id. Anyway can I build a link from it in the element html editor? How?
if not, Any recommendations for a good custom taxonomies plugin?October 29, 2018 at 3:09 am #712870Purushottam
This could work too:
If I am able to display multiple categories, like using a variation of {{post_terms.category}} or something where i can select which parent category’s child to display, it would solve my query.for eg. currently, i am getting :
Category: Absolute Beginner, Concept, SEO
Type: Absolute Beginner, Concept, SEO
Skill Level: Absolute Beginner, Concept, SEOWhat i want:
Category: SEO
Type: Concept
Skill Level: Absolute BeginnerMy category structure:
1. SEO, no child categories, Primary
2. Type->Concept
3. Skill Level->Absolute BeginnerMake Sense?
October 29, 2018 at 10:02 am #713291Tom
Lead DeveloperLead DeveloperAny chance you can link me to an archive page of one of those taxonomies? For example, the page that lists all posts associated with “Absolute Beginner”?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 29, 2018 at 11:01 am #713346Purushottam
October 29, 2018 at 6:11 pm #713743Tom
Lead DeveloperLead DeveloperHave you considered using custom taxonomies instead of only categories?
That way you could use the structure I mentioned above. I also think they would make more sense for what you’re doing.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 30, 2018 at 8:56 pm #715111Purushottam
Thanks Tom! Using Custompress to create custom taxonomies and {{post_terms.skill_level}} to create links on header.
October 31, 2018 at 10:04 am #715745Tom
Lead DeveloperLead DeveloperAwesome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.