The _x()
function is meant to be used with the same string/text which has two or more different meanings/contexts, e.g. “read” can be a verb (I can read music.
) or noun (It's a good read.
).
And when you use _x()
, the context is the second parameter and the text domain is the third parameter, but in your code, you incorrectly used _x()
, where these are missing the context:
_x( 'Comment', 'the_mdttheme' )
_x( 'Comment *', 'the_mdttheme' )
But that would actually be seen as missing the text domain since it’s supposed to be the third parameter.
So either provide the context (and also do so with your POT file) or perhaps you meant to use __()
? 🙂
Related Posts:
- Help with “text domain”, comments_form in WordPress theme
- Some translations do not work in my template class
- comment form args are not translatable (customized comment form)
- Menu names not getting translated
- Any way to permanently translate themes?
- Display Today’s date outside the loop?
- Sizing screenshot.png without losing aspect ratio
- When to use _e and __ for the translation?
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Page template in two level deep folder
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- Comment form not display properly?
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- Should I update my _s theme?
- Theme Customizer not loading
- Is it a good idea to make whole theme widgetized?
- Single Theme folder for Multiple WordPress
- How i can get widgets areas working in customizer?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- How to correctly add JQuery in a WP theme?
- How to disable automatic colors in the Twenty Twenty theme?
- My custom theme does not load the translations
- how to change a theme slug
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- Using esc_url with a hard coded url
- Broken template went invisible
- WordPress theme switcher
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Storefront child theme not applying parent theme [closed]
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- How to place HTML tags in content from the_content()?
- correct tags for validating input types
- Renaming a theme so it aids SEO and the theme used is hidden
- How do you use WordPress for a website that’s not in a blog format?
- Does the textdomain have to be the theme’s name?
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Theme thumbnail in dashboard
- Why set a second parameter in the translate function?
- How to change the theme directory uri for localhost?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- featured content: which area does this cover [closed]
- Which cache is kicking
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- How to track a users last visited page?
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Is there a way to switch to another theme?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- When trying to set title, not sure how to edit it for different pages
- Post archives link yields a 404 Not Found
- Get video from the post on homepage
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- Let visitors show/hide a type of content
- WordPress Themes Directory: Template which hits the standards?
- how to add a badge on product based on filter?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Any way to change/add to the theme name dynamically?
- Let user to upload multiple time
- how to create/register menu items that can be added to menus later
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- How to make menus, footer, sidebars multi language
- Different WP Rest API custom endpoints across different themes
- register_theme_directory() sees custom themes directory, but blank frontend
- One-Page WordPress Template
- How to create multiple pages in a client theme?
- Using Customizer value in an external PHP file inside a theme
- Import from HubSpot COS into WordPress 4?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- Using wp_enqueue_script with social media buttons?
- Getting all months in one year WordPress Archive
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- Correct way to make a custom block theme responsive
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?