[Resolved] Is there a way to make dynamic variables like
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to apply dynamic variables like 'site title' and 'tagline' using the SEOPress SEO plugin across the whole site or specific posts/pages. They also encountered issues with translations not appearing correctly on their live site, despite settings adjustments and cache flushing. Solution: 1. The client set dynamic variables in the SEOPress settings under 'Titles and Metas - Home'. 2. They translated the necessary strings for the site title and tagline into the second language. 3. After discovering discrepancies in the database strings through PHPMyAdmin, the client corrected these by removing commas and ensuring consistency in naming. 4. This adjustment led to the correct display of the site title in the second language on the front end. If you're experiencing similar issues, we recommend checking your SEO plugin settings and ensuring all relevant strings are translated in WPML. Additionally, verify database entries for consistency if problems persist. If this solution does not resolve your issue or seems outdated, please visit our support forum to open a new ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to use dynamic variables like 'site title' and 'tagline' with the SEO plugin SEOPress on my site hidden link. I have checked related strings and documentation, including WPML resources, but I am unable to apply these dynamic variables to set generally for the whole site or certain posts/pages. I have also compared pages with and without custom metadata to see the differences.
Symptoms:
The dynamic variables cannot be applied to any dynamic variables that are used to set generally for the whole site or certain posts/pages.
Questions:
Is there a way to make dynamic variables like 'site title' and 'tagline' with the SEO plugin SEOPress?
Which SEO plugin supports dynamic variables for site-wide or specific post/page settings?
Thank you for the test environment, I've activated SEOPress and imported the settings exported from my live site. Please see the corresponding screenshots.
1. I set "%%sitetitle%% - %%sep%%" into "SEOPress - Titles and Metas - Home". 2. 2. Both strings on WP (domains) - Translated strings with (2nd lang) have been translated.
3. I created two articles both with the versions of default and the 2nd languages (as the marks with "(2nd lang)" to be easily recognized). The site title in the embed block looks in the 2nd lang correctly as the mark around in red. hidden link
However, it seems the translation doesn't work on my live site ke2b.com even though I have tweaked the settings of SEOPress, left the OG title field empty (plus flush all the caches) in the same way on the test site you created. Please see the screenshot and the corresponding link to the article: hidden link
I hope this info is helpful to let you know what problem I need your support and check it out.
Update: I found the string of the Blog Title under the WP domain appears "Ke2B, LLC - Your Trusted WordPress Website Management Partner." which is different from another newer version without a comma "Ke2B LLC - Your Trusted WordPress Website Management Partner.", and it can't be found out on the site title field, frontpage, blogpage, or any place on the backend.
These values have been found through PHPMyAdmin, there were three "Ke2B, LLC - Your Trusted WordPress Website Management Partner." in the tables like "wp_icl_translate_OOO" including "wp_icl_translate_job".
After I modified all of the strings into "Ke2B LLC - Your Trusted WordPress Website Management Partner." (without a comma), the site title in the embed block has became in the second language (Chinese) as the screenshot.
Questions:
1. Am I doing this in the correct way or there's a better way I supposed to take with WPML and any SEO plugins?
2. Does this mean that the SERPs of my pages/posts especially my front page on Google would finally appear in the correct language? The site title on the SERP has appeared in English for a very long time (that's why I think it's an urgent issue), I hope it can finally be fixed now for this modification.
3. Does this mean there are problems with those database tables "wp_icl_translate_OOO" including "wp_icl_translate_job" on my live site ke2b.com? How should I handle them properly?
"To answer all of your questions, as above looks like it is fine now."
"I do not think there is an issue with your tables, it is probably you translated the wrong string, or it has not been saved correctly."
I do not think that you have answered my questions or clarified the situation, the problem, or its causes. It doesn't look like you knew and told how the related tables and translations work which might lead to this situation that it's hard to be found through the debug process.
That was my answer to the questions you asked. Do I think there is an issue with your tables?
Of course, I can not tell how the issue happened since it could be for numerous things, like related plugins, servers, your steps in first place etc, I can only guess. If you repeat the process and the issue still happens I can explain why that happens and what is wrong, otherwise, the best I can do is suggest how to solve the issue.