Custom Taxonomy
-
Hi
I create a custom taxonomy for “Posts”, and when I put that in the shortcode, the slider just ignore the parameter and show all posts.My custom taxonomy unique name is: categoria_tecnico
I’m using shortcode:
[recent_post_slider taxonomy=”categoria_tecnico” post_type=”post”]But it’s not filtering, plugin keep showing all the posts.
Anyone knows how can I filter custom taxonomy?
-
Hello
Please do not copy and paste the shortcode parameter because if cause the quote(“) issue writes manually.
Please pass the “category” parameter in category wise.
you are using “categoria_tecnico” taxonomy and you pass this taxonomy related category id in your shortcode.
Ex:-[recent_post_slider taxonomy="categoria_tecnico" post_type="post" category="Your Category ID Here"]Let me know if you have any issues or queries.
Thanks
Hi Ketan, tks for the help!
When I use Category parameter, the slider doesn’t show in the page anymore. Removing that, slider back to the page.
I use:
[recent_post_slider taxonomy="categoria_tecnico" post_type="post" category="346"]It is a valid category ID.
One question, how can I select all category IDs in that option?
Tks!
Hello @andr3ribeiro
Is this custom taxonomy : categoria_tecnico comes under a custom post type?
Because right now you have added taxonomy=”categoria_tecnico” with post_type=”post”To display posts from app category, please do not pass this parameter category=”346″
Anoop,
No, is in the default Post.
In the beggining I use:
[recent_post_slider taxonomy=”categoria_tecnico” post_type=”post”]But not working, still showing all posts.
I would like to show all posts with all terms under that custom taxonomy ”categoria_tecnico”.-
This reply was modified 6 years, 1 month ago by
Andre.
Hello @andr3ribeiro
Can you please share me a screenshot that showing the custom taxonomy ”categoria_tecnico” ?
May be this custom taxonomy ”categoria_tecnico” related to a custom post type
OR
please use this shortcode :
[recent_post_slider category="346"]Hello Anoop, kaise ho aap?
“categoria_tecnico” is not under custom post type. Is under default Post list.
I dont use default taxonomy “category”, I use 2 custom Taxonomy:
“categoria_tecnico”
“categoria_consumidor”I would like to show in a page named ‘Técnico’ all posts with some terms checked in custom taxonomy “categoria_tecnico”.
and
I would like to show in other page named ‘Consumidor’ all posts with some terms checked in custom taxonomy “categoria_consumidor”.
With “WP Responsive Recent Post Slider/Carousel” I can do this?
Hello @andr3ribeiro ,
Mai thik hoon…aap kaise ho? 🙂
Are you using any plugin to create the custom taxonomy Or registering custom taxonomy with coding ?
I need to test this first than only I can tell you.
Main badeya hoon, dhanyawaad!
I’m using that:
https://ww.wp.xz.cn/plugins/custom-post-type-ui/Hello,
Also one question : why you are registering custom taxonomy? You can also also achive the above case by creating the category under default category like tecnico and consumidor. Like this you can use category ID to display their posts on their respective page.
Because the company have 2 blogs in the website and are two peoples feeding these blogs. One use “categoria_tecnico” and another use “categoria_consumidor”.
They only can publish in your taxonomy.
I control this using roles and capabilities.
Role “tecnico” only can publish in “categoria_tecnico”. Same with Consumidor
That was a requirement from the site owner.Bahut bara lafda hai
🙁-
This reply was modified 6 years, 1 month ago by
Andre.
Hello,
Ok, Let me test this in the morning..
Hello @andr3ribeiro
Its working…
First i installed the Custom Post Type UI plugin and register a taxonomy “cat_a”
This taxonomy work as atags: https://prnt.sc/rufw9iAfter that i open a post in the edit mode and add the Enter key under the
Category A: https://prnt.sc/rufx9bAnd now you can see the complete shortcode will be :
[recent_post_slider design="design-1" taxonomy="cat_a" category="40"]Where cat_a is custom taxonomy and 40 is ID of anoop (added under Add new Category A during adding new post/ edit a exiting post)
Please let me know if there is anything…
Ok Anoop, tks for your time.
Any possibility to show post of all taxonomy terms?
-
This reply was modified 6 years, 1 month ago by
Andre.
Hello @andr3ribeiro
Sorry but i did not get your question.
Anoop,
Sorry, I’ll explain better.You register a taxonomy “cat_a”.
And created a term “anoop” inside the taxonomy “cat_a”.With the shortcode, using: category=”40″, you are able to see slider with the posts inside term “anoop”.
But if my client create another term called: “andre”
Now. the taxonomy “cat_a” have 2 terms. “anoop” and “andre”The question is:
How to show in the slider, posts with that two (or others) terms in taxonomy “cat_a”?something like:
[recent_post_slider design="design-1" taxonomy="cat_a" category="40, 41"]When the publisher create a new term (“ketan” for example), I need to update the shortcode again? Or is there a way to show all posts from taxonomy=”cat_a” ?
Sorry the questions a lot, but I like your plugin, and would like to keep using that in my solution.
Muzhe maaf kijyie, muzhe bahut accha laga Recent Post Slider!
-
This reply was modified 6 years, 1 month ago by
The topic ‘Custom Taxonomy’ is closed to new replies.