Thanks that worked as well. Is it possible to add some extra labels? In some cases the label doesn't fit in. F.e. in some cases I need the label without a Capital or first letter in uppercase. If I change the standard labels the menu will also be completely written in lowercase.
Thanks again.
Hi,
Which label do you want to setup?
I assume you are using Types plugin to create the custom post type,
please edit your custom post type, in section "Labels", there you can setup the related labels manually.
See screenshot labels.JPG
Thanks. I would like to create different label for the title and menu label in WooCommerce. Looks like there retrieving the same label field?
Please elaborate the question with more details:
I would like to create different label for the title and menu label in WooCommerce
How and where do you want to create the labels?
You can take a screenshot for it, I need to test and check if it is possible within Toolset.
Hi Luo,
Thanks for getting back at me. I would like to give the Archive title and my menu title/label in WordPress back-end a different value.
F.e.: Archive page title: Led verlichting kennisbank and Menu label: Kennisbank. At the moment the retrieving both the same field value as far as I can see. Correct?
Thanks for the details,you are right, it is expected result, and there isn't such kind of feature within Types plugin, in your case it needs custom codes, for example, in wordpress built-in theme 2017, it is using function the_archive_title() to render archive title in front-end, so you can use filter hook "get_the_archive_title" to change the archive page title to what you want, for example:
function kennisbank_archive_title( $title ) {
if ( $title == 'Kennisbank') {
$title = 'something else';
}
return $title;
}
add_filter( 'get_the_archive_title', 'kennisbank_archive_title' );
More help:
https://developer.wordpress.org/reference/hooks/get_the_archive_title/
Hi Luo,
Thanks. Before Toolset types I used CPTUI where this was standard functionality (screenshot). Maybe you could consider implementing this in the next update or so?
The new feature request ticket has been created here:
https://toolset.com/forums/topic/setup-different-archive-title-from-post-type-name/
Our developers will evaluate it, please follow up above ticket if there is anything missing.
My issue is resolved now. Thank you!