Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • https://gist.github.com/toshotosho/109ec080dcffbb711be4d0f0db99d5f5

    removes /wp-includes/css/dist/block-library/style.min.css if Classic Editor is active and set to ‘classic’

    If users are allowed to pick which editor to choose per post, then the above code might cause issues with posts using the block editor.

    Forum: Plugins
    In reply to: [WP Term Family] Backend?
    Thread Starter Todor Gaidarov

    (@tosho)

    Sure thing, it was right there in front of me. The answer is in the readme file:

    ### How do I use it?

    Connect taxonomies together like so:

    `
    /**
    * Use ‘post_tag’ taxonomy as a family for categories
    */
    function your_plugin_thing() {
    wp_set_taxonomy_family( ‘category’, ‘post_tag’ );
    }
    add_action( ‘wp_register_term_families’, ‘your_plugin_thing’ );
    `

    Don’t know why this is considered resolved.

    Found two problems:
    1. self::$plugin_folder = ‘Taxonomy-Order’;
    On my system at least, the folder created was lower case, ie. ‘taxonomy-order’. After changing that the two 404s calls to style.css and taxonomy-order.js were fixed.
    2. After the initial install and plugin activation, the plugin table was not created in the database. Only after deactivating and activating again it was created and then my custom taxonomy terms reappeared.

    hth

Viewing 3 replies - 1 through 3 (of 3 total)