Hi,
I’m sorry, but I don’t really understand what you are trying to achieve.
The plugin only allows you to rename WordPress taxonomy labels. It has no other functionality.
You code
function my_prefix_rename_taxonomies_skipped_keys( $taxonomy_keys ) {
return array(
‘link_category’,
‘nav_menu’,
‘post_format’,
);
}
add_filter( ‘rename_taxonomies_skipped_keys’, ‘my_prefix_rename_taxonomies_skipped_keys’ );
actually does nothing really as that’s the default of the plugin. This code means the link_category, nav_menu and post_format WordPress taxonomy are kept intact – you can not rename their labels with the plugin.
If you want to be able to rename labels for post_format taxonomy, remove it from your code.
If you, on the other hand want to be able to use post_format taxonomy on your website, then please note that this functionality is not related to this plugin. Contact your theme developer/support to allow such functionality. Or enable it yourself via your child theme.
Best regards,
Oliver
Hi,
Sorry – I read that on one of your other pages – maybe I misunderstood.
All I want to do is:
Change the Default Taxonomy Title of “Format” so that it says Media. (only need this for posts)
If I need to delete something from the code – please advise where I would do that.
thank you for your help so far. much appreciated.
Hi,
Please try the solution I provided in my previous reply: just delete the ‘post_format’, from your code in your child theme. That should make the post format taxonomy labels available for modification with Rename Taxonomies plugin.
However, I can really provide no warranty that it will work, as Post Formats are a very special taxonomy in WordPress and I’m not sure your custom labels will be applied as you desire.
Best regards,
Oliver
Some more information: your code
function my_prefix_rename_taxonomies_skipped_keys( $taxonomy_keys ) {
return array(
'link_category',
'nav_menu',
'post_format',
);
}
add_filter( 'rename_taxonomies_skipped_keys', 'my_prefix_rename_taxonomies_skipped_keys' );
should become
function my_prefix_rename_taxonomies_skipped_keys( $taxonomy_keys ) {
return array(
'link_category',
'nav_menu',
);
}
add_filter( 'rename_taxonomies_skipped_keys', 'my_prefix_rename_taxonomies_skipped_keys' );
Hi,
This is how my child theme funtions.php now looks.
<?php
/**
* Child Theme
*
*/
function crocal_child_theme_setup() {
}
add_action( ‘after_setup_theme’, ‘crocal_child_theme_setup’ );
function my_prefix_rename_taxonomies_skipped_keys( $taxonomy_keys ) {
return array(
‘link_category’,
‘nav_menu’,
);
}
add_filter( ‘rename_taxonomies_skipped_keys’, ‘my_prefix_rename_taxonomies_skipped_keys’ );
//Omit closing PHP tag to avoid accidental whitespace output errors.
It still doesnt show up in the rename taxonomies page settings page.
Any other ideas? (please)
It still doesnt show up in the rename taxonomies page settings page.
I’m sorry but what do you mean? If you can not access the Tools → Rename Taxonomies that probably means you haven’t activated the plugin 🙂 Please activate the plugin.
As for post_format taxonomy still not being available for modification, this is due to how WordPress treats this taxonomy (like I’ve mentioned in my previous reply):
Post Format is a special taxonomy and WordPress code disables the UI for it. Rename Taxonomies plugin does not allow changing labels for taxonomies with no UI because the labels are displayed nowhere in that case.
I even went further and tried to force the Post Format taxonomy for modification with Rename Taxonomies plugin but it produced no luck. You see, the labels are not being used in WordPress admin area, so if you want to rename the “Post Format” option field on post edit screen to “Media”, you have no luck as that is hard-coded within WordPress itself.
You may ask WordPress support directly for help on renaming the “Post Format” to “Media” but honestly, I can see no way you can change it without modifying WordPress code, which you should never do. But surely, you can try to ask as I might be mistaken and missing something… Good luck with that!