I'm using collective.taxonomy and I have a taxonomy called taxonomy_themes.
I use it with it's behavior in my dexterity content type.
There is allready a index called taxonomy_themes, but I need that this field to be searchable via the SearchableText index.
I've read a lot about collective.dexteritytextindexer but I can't made it work with the taxonomy.
Related
I am using the WordLift plugin for WordPress. I have created a custom taxonomy and I'd like to make it become a Wordlift entity. Is there a way to achieve it?
I've seen this answer for custom post types.
Custom post types support in WordLift
I am currently working on an autocomplete select to use in the taxonomy terms edit screen that would allow you to select an entity from the Vocabulary, thus mapping a taxonomy term to an entity.
Initially I will use this to generate a JSON-LD for the taxonomy term and to provide extensible semantic tagging of posts (e.g. for a LodgingBusiness entity type which has an amenityFeature mapped to the taxonomy term, this would allow me to bind the amenityFeature to well-known knowledge graphs such as DBpedia and Wikidata).
In a later stage the entity page could extend the taxonomy term page and provide automatic suggestion for taxonomy terms when the entity is discovered in texts.
What is your aim exactly, it's would be useful to shape the next releases.
PS: WordLift CTO here.
I am working on news website and I would like to add two fields in the post form, one for the reporters names and other for photographers names.
I need these fields to be act exactly like tags field: you can add many and it is autocomplete.
I am not sure what is the proper way to implement such thing? and whether there Is a plugin for that or not?
Many thanks
you can create your own category/tag by using below plugin
1. Custom Post Types and Custom Fields creator – WCK
OR
2. Toolset Types – Custom Post Types, Custom Fields and Taxonomies
After assign a custom taxonomy (i.e. teams) to a custom post type (team), I've created the taxonomy-teams.php template but the custom post type doesn't seems to be specified to the $wp_query.
I would like to avoid to create an additional query or to alter the query_post (i.e.: query_posts("post_type=team&".$query_string);) which is a bit hacky.
Any ways to do that ??
i am using wordpress 4.1 with ACF v4. I have a custom post type with custom fields added and need add a new custom field each time a new category is added. If i add the category "Sedan" automaticly i have to add the custom field "Sedan". Can I do this with the plugin functions? Or I have to do this with code, with inserts in database? Thanks in advance!!
If you are trying to create a dynamically built category selector within ACF, look into the Taxonomy Field.
This will generate a list based on specified taxonomy (categories is an option). The field will return either the Taxonomy Term object (if you use a single select option such as radio buttons), or an array of objects (if you use a multiselect option such as checkboxes). You could also set the field to return the Term ID instead.
Is there a way (or a plugin) to make a given content type in WordPress (i.e. posts, pages, media, custom post types) act as a taxonomy? I basically want to setup a one-to-many relationship of one item in a given post type to many items of a different type.
So basically, I have a custom post type, call it Authors. I want to use a Post Type rather than a taxonomy because I need a lot more meta data than a taxonomy allows.
I then have another custom post type called Books.
Is there a way to put a box similar to the Categories or Tags metaboxes on the Author write page that display a list of all the books. I can then choose from a list of all the books, thus creating a relationship.
If this doesn't already exist, I guess I'll write a plugin for it. I thought I'd give this a try first, just in case.
Have you considered adding new meta fields to a custom taxonomy? Unfortunately, you ned to either create a new table for the meta storage or use wp_options, but it does work and is relatively future-friendly. Remember to start your option names with an underscore, though.
http://www.strangework.com/2010/07/01/how-to-save-taxonomy-meta-data-as-an-options-array-in-wordpress/