Tagged: avia builder, CPT, Custom Post Type, link, pagebuilder, post type, slug, translation
-
AuthorPosts
-
December 23, 2022 at 10:25 am #1377192December 24, 2022 at 9:00 pm #1377302
Hey vdlpwp,
unfortunately, your screenshot is not working so I’m not sure what you meant, perhaps you made an error in your custom post type, try using the /enfold/includes/admin/register-portfolio.php file for reference and see this thread.Best regards,
MikeOctober 2, 2023 at 12:27 pm #1421123Hi Mike,
It is been a while. Here a screenshot;
https://i.postimg.cc/MGM0V0MV/1a488869-d059-4cb8-913c-2d581107798c.png
‘Page’ becomes ‘Pagina’ (NL)
But how to translate voor example ‘Fund’ into ‘Fonds’ (NL)
Labels in the custom post type are correct. But her it uses the cpt ‘slug’ instead of the ‘title’.Kind regards,
Team VDLPOctober 3, 2023 at 5:59 pm #1421307Hi,
Is this screenshot in the backend? I believe that you can edit the language file for your language with Poedit, the language files are at enfold/lang/Best regards,
MikeNovember 24, 2023 at 8:36 am #1426369Hi Mike,
This is idd a screenshot in the backend. But it is not a language string. So it will not be listed in de language files.
This list outputs for example the ‘Post Type Key’ Fund (CPT) and Alb_elements, instead of the ‘Singular Label’ of this post type.
November 24, 2023 at 9:51 am #1426378Hi,
Thank you for the update.
Did you remove the above screenshot? How did you create the custom post type? If you register the CPT manually, make sure that the post type name is wrapped in the following functions so that they can be translated to other languages.
// https://developer.wordpress.org/reference/functions/_x/
// https://developer.wordpress.org/reference/functions/__/You can find the label examples for the Portfolio post type in the /enfold/includes/admin/register-portfolio.php file around line 11.
$labels = array( 'name' => _x( 'Portfolio Items', 'post type general name','avia_framework' ), 'singular_name' => _x( 'Portfolio Entry', 'post type singular name','avia_framework' ), 'add_new' => _x( 'Add New', 'portfolio', 'avia_framework' ), 'add_new_item' => __( 'Add New Portfolio Entry', 'avia_framework' ), 'edit_item' => __( 'Edit Portfolio Entry', 'avia_framework' ), 'new_item' => __( 'New Portfolio Entry', 'avia_framework' ), 'view_item' => __( 'View Portfolio Entry', 'avia_framework' ), 'search_items' => __( 'Search Portfolio Entries', 'avia_framework' ), 'not_found' => __( 'No Portfolio Entries found', 'avia_framework' ), 'not_found_in_trash' => __( 'No Portfolio Entries found in Trash', 'avia_framework' ), 'parent_item_colon' => '' );
Best regards,
IsmaelJanuary 25, 2024 at 2:32 pm #1432016Hi Ismael,
Our apologies for the late reply.
We added our custom post types with ACF. It should return the custom post type ‘name’ instead of the ‘Post Type Key’.
For example ‘post’ should be ‘Berichten’, like ‘page’ is ‘Pagina’s’ in the screenshot beneath (Masonry element);
https://i.postimg.cc/MGM0V0MV/1a488869-d059-4cb8-913c-2d581107798c.pngIs there any workaround or filter/function for our child theme to fix this?
Kind regards
Team VDLPJanuary 26, 2024 at 10:04 am #1432104 -
AuthorPosts
- You must be logged in to reply to this topic.