• Resolved Robby Barnes

    (@robby-barnes)


    Hi folks,

    I have Simple Taxonomy Refreshed 3.3.0 installed and activated on my site ( fifthestate.org ).

    Using WordPress 6.8.1, PHP 8.3, Classic Editor, CyberChimps Responsive theme 6.1.6.

    My custom taxonomy “FE Authors” is working well on pages but recently it is missing from the Media Library interface, even though Custom Taxonomies is checked in Screen Options and Media is listed as one of the post types for FE Authors in the Custom Taxonomies settings.

    I tried rolling back Simple Taxonomies Refreshed to version 3.2.0 without effect.

    I would be grateful if you could help me troubleshoot this problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nwjames

    (@nwjames)

    @robby-barnes,

    Thank you for your question. If you are not seeing your taxonomy on the Media Library, then it is possible that one of the Visibility flags is not set appropriately.

    You need the Display on admin ? flag set to true. If this does not resolve the issue, please can use use the Export PHP option for your taxonomy so that it would be easier to do further investigations.

    Regards,

    Neil James

    Thread Starter Robby Barnes

    (@robby-barnes)

    Thanks for your reply.

    For the taxonomy (fe_authors) under Post Types I see both Pages and Media.

    I don’t see anything that I can change in the admin screen…

    Below is the exported PHP for the taxonomy. I appreciate your help with this…

    <?php
    /*
    Plugin Name: XXX - FE Authors
    Version: x.y.z
    Plugin URI: http://www.example.com
    Description: XXX - Taxonomy FE Authors
    Author: XXX - Simple Taxonomy Refreshed Generator
    Author URI: http://www.example.com

    Copyright 2025 - XXX-Author

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */

    add_action( 'init', 'register_staxo_fe_author', 10 );

    function register_staxo_fe_author() {
    register_taxonomy( "fe_author",
    array (
    0 => 'page',
    1 => 'attachment',
    ),
    array (
    'name' => 'fe_author',
    'description' => '',
    'labels' =>
    array (
    'name' => 'FE Authors',
    'singular_name' => 'FE Author',
    'search_items' => 'Search FE Authors',
    'popular_items' => 'Popular FE Authors',
    'all_items' => 'All FE Authors',
    'parent_item' => 'Parent FE Author',
    'parent_item_colon' => 'Parent FE Author:',
    'name_field_description' => 'The name is how it appears on your site.',
    'slug_field_description' => 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.',
    'parent_field_description' => 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.',
    'desc_field_description' => 'The description is not prominent by default; however, some themes may show it.',
    'edit_item' => 'Edit FE Author',
    'view_item' => 'View FE Author',
    'update_item' => 'Update FE Authors',
    'add_new_item' => 'Add New FE Author',
    'new_item_name' => 'New FE Author Name',
    'separate_items_with_commas' => 'Separate terms with commas',
    'add_or_remove_items' => 'Add or remove terms',
    'choose_from_most_used' => 'Choose from the most used terms',
    'not_found' => 'No Terms found',
    'no_terms' => 'No Terms',
    'filter_by_item' => 'Filter by category',
    'items_list_navigation' => 'Terms list navigation',
    'items_list' => 'Terms list',
    'most_used' => 'Most Used',
    'back_to_items' => '← Back to Terms',
    'item_link' => 'Category Link',
    'item_link_description' => 'A link to a category.',
    'name_admin_bar' => '',
    'template_name' => 'Category Archives',
    'archives' => 'All Categories',
    'no_term' => 'No term',
    ),
    'public' => true,
    'publicly_queryable' => true,
    'hierarchical' => true,
    'show_ui' => true,
    'show_in_menu' => true,
    'show_in_nav_menus' => true,
    'show_tagcloud' => true,
    'show_in_quick_edit' => true,
    'show_admin_column' => true,
    'capabilities' =>
    array (
    'manage_terms' => 'manage_categories',
    'edit_terms' => 'manage_categories',
    'delete_terms' => 'manage_categories',
    'assign_terms' => 'edit_posts',
    ),
    'rewrite' =>
    array (
    'slug' => 'fe_author',
    'with_front' => true,
    'hierarchical' => true,
    'ep_mask' => 0,
    ),
    'query_var' => 'fe_author',
    'update_count_callback' => '',
    'show_in_rest' => true,
    'sort' => false,
    ) );
    }
    // Display Terms with Posts: none
    // Display Terms Before text:
    // Display Terms Separator:
    // Display Terms After text:
    // Show Terms in Feeds: 0
    Plugin Author nwjames

    (@nwjames)

    Thank you. This is puzzling. I copied/pasted the export file and saved it as a php file into my mu-plugins directory and it worked fine for me, i.e. I could see the taxonomy in the Media menu, also on the individual images the taxonomy box appeared, though I needed to Edit more details to add/modify the terms. I assume that this is standard functionality for the Media items.

    I was using my administrator id. I did wonder about capabilities, but changing these to non-existent values just stopped me entering or changing values. It still displayed a box for the allocated terms (even if empty).

    I did try to load the Responsive theme – but made no difference. Not really a surprise as the Library is an admin screen rather than a front-end one.

    Using the rest interface, it certainly thinks that fe_author is a valid taxonomy to be present: https://www.fifthestate.org/wp-json/wp/v2/media/35920 shows the taxonomy is linked (with no terms).

    I tried asking Copilot and it suggested (other than permissions) a plugin conflict. Running wp-accessibility gave the Decorative checkbox just after the fe_authors box , so no apparent conflict with that plug-in.

    I am at a bit of a loss to think where the issue is coming from, I’m sorry to say. I’ll revert if I can think of anything else.

    Neil James

    Thread Starter Robby Barnes

    (@robby-barnes)

    Sorry for the added complexity and thanks for looking into my problem again.

    After your last message I tried the following without effect:

    • Deactivated and re-activated Simple Taxonomy Refreshed
    • Used WP Rollback to run STR in a previous version
    • De-activated and re-activated Classic editor
    • De-activated and re-activated WP Accessability plugin
    Thread Starter Robby Barnes

    (@robby-barnes)

    (continued)

    Two recent major changes to the site have been upgrading to WP 6.8.1 and PHP 8.3, in case they may be relevant.

    Thanks again for your help…

    Robby Barnes

    Thread Starter Robby Barnes

    (@robby-barnes)

    Hello again,

    I just updated my theme to Cyberchimps Responsive 6.1.7 and the problem seems to have been fixed.

    I will mark this thread as solved if it remains fixed after a week or so.

    Very grateful for your help and look forward to using the Simple Taxonomy Refreshed plugin going forward.

    Robby

    Thread Starter Robby Barnes

    (@robby-barnes)

    Yes, it seems the problem has really gone away.

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

The topic ‘Custom Taxonomy missing from Media edit interface’ is closed to new replies.