VC Post Grid displays custom taxonomy

I created a CPT linked to a custom tax and I use the publication grid of Visual Composer to display all the CPTs.

Is there a way to display the custom taxonomy name using the VC Post grid?

I know there is an element called "custom field" but it is post_meta and not a term right?

URL rewrite – How to replace the registered taxonomy URL of the provider plugin in the child theme

In a provider plugin, I got this:

        register_taxonomy( 'listing-region', 'listing', array( 'rewrite' => false, 'hierarchical' => true, 'label' => __( 'Regions', 'bt_plugin' ), 'singular_name' => __( 'Region', 'bt_plugin' ), 'show_admin_column' => true ) );

To avoid locking the plugin update, I would like to overwrite the & # 39; rewrite & # 39; in the child theme to get this: <=>

How can I do this?

For now, I have tried this in functions.php:

function theme_child_custom_rewrite() {
    //Ensure the $wp_rewrite global is loaded
    global $wp_rewrite;
    //Call flush_rules() as a method of the $wp_rewrite object
    $wp_rewrite->flush_rules( false );
    add_rewrite_rule('^region/(.*?)$', 'index.php?listing-region=$matches(1)', 'top');
add_action('init','theme_child_custom_rewrite', 1000);

function listing_region_term_link( $post_link, $id = 0 ){
    $post = get_post($id);
    if ( is_object( $post ) ){
        $terms = wp_get_object_terms( $post->ID, 'course' );
        if( $terms ){
            return str_replace( '%listing-region%' , $terms(0)->slug , $post_link );
    return $post_link;
add_filter( 'term_link', 'listing_region_term_link', 1, 3 );

plugins – Determine whether to use CPT or Taxonomy and also if custom tables should be used

I am building a very complete plugin which will probably never be used on a single site, but I am still trying to build plugins / themes so that they could (in theory) be used in other installations. I know what to build and the coding itself is not a problem, where I am stuck is that I keep turning around on what should be a post-type personalized and what should be a taxonomy. I also go back and forth between the content / data to be saved using the standard POST / POSTMETA table structure of WordPress and what should be stored in custom tables.

Here are the data I am looking at:

  • Teams (i.e., team one, team two, team three, should probably be CPTs)

  • Sessions / seasons (summer 2020, autumn 2020, etc.)

  • Programs (Male, Female, CoEd, Masters, etc.)

  • Divisions (each combination of session and program must then have a distribution by division)

  • Rankings (Probably better to calculate on the fly)

  • Top scorers (Probably better to calculate on the fly)

  • Times (A collection of the CPT game listed below)

  • Games (have actual data associated with them for reporting purposes, such as who scored, who participated, who was penalized, etc.)

For the CPT team, players / users must be assigned, but a player / user can be assigned to more than one team as long as they come from different programs. So someone could play the Womens, Coed and Women & # 39; s Masters for example. Would the standard structure of the WP Post / PostMeta tables be sufficient or would it be smarter to place a large part of the team data in a custom table?

Something like divisions, on the surface, works better as a taxonomy and I can customize the taxonomies to have all the options I would need, but then I have to consider that a replacement for “ end of season & # 39; & # 39; might potentially be necessary, so I would need to be able to assign the final table position to teams in this taxonomy … … then I wonder if the best solution is to make it a type of custom post, or do I need to create a separate utility instead interrupts the ranking process so that I can override the end of season ranking.

This is just a sample of what needs to be built – really curious / interested to see what type of theories you have on the best way to determine CPT versus taxonomy and / or ; use the existing DB structure compared to the custom structure.

I am about to start coding “ serious '' for these things and i would hate making the wrong choice for one of them at first, then i should go back and start over on an entire module.

custom taxonomy – Note: undefined property: WP_Error :: $ name

I added the taxonomy of locations to the menu, then I gave these errors:

Notice: Object of class WP_Error could not be converted to int in /home/deniztas/ on line 2355

There are some invalid menu items. Please check or delete them.

Notice: Undefined property: WP_Error::$name in /home/deniztas/ on line 78

jsonapi – JSON API: how to correctly filter the taxonomy terms to obtain all the nodes corresponding to the term or to the parent term?

I have a vocabulary (channel) on two levels. An item node can be added to the first or second level (via field_channel). The hierarchy looks like:

  • channel-1
    • subchannel-1.1
    • subchannel-1.2
    • subchannel-1.3
  • channel-2 (i.e. (node ​​/ 1, node / 2))
    • subchannel-2.1 (i.e. (node ​​/ 4, node / 5))
    • subchannel-2.2 (i.e. (node ​​/ 6))

I want to filter all the nodes belonging to a level 1 term (those which were directly assigned to the term and those which were assigned to one of its child terms).

In other words, the filtering of all nodes for a given channel (i.e. channel-2) must contain the nodes assigned directly to that channel and all of the nodes assigned to a sub- channel whose parent channels are this channel. In the example all nodes from 1 to 6.

The json api request looks like:


I don't see the error, but it only contains the nodes corresponding to the parent-channel condition. If I remove this condition, the ones that match the channel condition are there. What's wrong with demand.

I also tried the short form:


Which gives me an error in the where clause (the group empty at the start):

OERE (() and ( LIKE: db_condition_placeholder_0 ESCAPE & # 39; \ & # 39;)

BTW: The example could be easily constructed using the drupal thunder distribution.

migration – Term not migrated in the taxonomy reference field

I have two migrations configured, drawing from two separate JSON streams.

The first is a stream of taxonomic terms with a tid, a vid and a name. I can run the migration on this fine and generate the relevant terms on my Drupal 8 test build.

The second JSON stream is one of the node articles, which includes a taxonomy reference field, with a name value that matches the terms migrated in the previous migration described.

When I run the second migration for the nodes, the taxonomy reference field is empty.

I have tried the entity_generate and migrate_lookup plugins without success

  plugin: migrate_lookup
  migration: migrate_taxonomy_terms_en
  source: tid

The JSON file for taxonomy terms looks like this:

"name":"Term one",
"name":"Term two",

The JSON flow for node migration looks like:

   {"title":"Page title","field_taxonomy_term":"Term one"}

Anyone have any ideas on what i am missing?

Thank you!

taxonomy – How to best add an author or artist to the product

What is the best way to configure authors or artists on a product (in a bookstore) where I can also create pages for each author?
Author pages would include an image and description including the products listed on that author's site.
Currently I am building the site with a WooCommerce Kalium template and there must be a better way to manage authors than using attributes and manual entry pages for each author.
Sorry, I'm new here …
Thank you for your help.

terms of taxonomy – Will Drupal meet my needs?

I need to create content for a number of customers that will be published on their websites or on social networks or even in advertisements.

I built the publication tool and I developed an ability to consume RSS feeds and publish their content. What I need is a tool to write markup and manage content customer by customer. No public access is required on the website.

Let different clients connect and see only their own content.
Let them approve it or request a change.
Let them write theirs.

Then, my publishing tool will collect this content and distribute it to its destination.

Will Drupal do this? Will it need a lot of changes or maybe multi-site?

I don't care about themes, just our standard theme will work fine.

Thanks in advance.


Categories – When creating a new product, automatically assign it to all custom taxonomy woocommerce

I have a custom taxonomy called Location, and there are a lot of parent and child categories on it to indicate where the product is available. They are available in most categories, so I end up spending too much time checking them off.

Is there any way to include a function to check all the categories and i just need to uncheck the locations where it is not available?

emails – Allows guests to subscribe to specific taxonomy conditions and send them weekly updates / notifications

I would like to display a block to my visitors, where they can enter their email address, name and a list of topics (taxonomic terms) that interest them (for example, "technology", "health", "science").

Once subscribed, they should receive regular updates / summaries by email, with new content in these topics.

I don't want users to necessarily subscribe first, but also allow guests to subscribe to topics.

Is this possible with Drupal 8 natively or via a plugin?
Or do I have to write my own plugin?