How to solve a PHP problem to increase user experience ?
-
Hi all, I am having a peculiar PHP problem that is affecting the user experience of the site and thus, the SEO.
The site is www.atlantiksurf.com and as you can see I use the QTranslate Plugin to manage the 3 different languages:
If you enter the german version: http://www.atlantiksurf.com/de/ , and you scroll down to the bottom of the page, you will notice there are a couple of posts that have (Español) in their Titles. This means that this particular post is written in Spanish and should only appear in the Spanish version of the site.
Every single post is published on the three versions even when they are language orientated. The result is that when you press that specific Spanish title on the German version, you get nothing but this:
http://www.atlantiksurf.com/de/aritz-aranburu-tendra-que-estar-un-mes-sin-competir/
Because obviously there is nothing there.
If I go to the wordpress admin panel and search for the post manually, I can solve the problem by erasing all the default code of the different language versions that should not appear. But this is only a manual and non practical solution.
The problem, I think, might be in the PHP orders that the Wordpress Theme is receiving from somewhere.
I come to all of you SEomoz users as my last chance, because I've been months in discussions with Qtranslate users and php amateurs that cannot solve the issue.
I know that this question isn't strictly about SEO, but in a way it is, because it must be affecting the way that Google look at us.
Please, some help or orientation would be highly appreciated.
-
Ok thanks a lot ! Cheers !
-
I'm not spotting it right away. The problem is I would need to know what the plug-in is doing. . .and I'm not the best guy to ask those kinds of questions. I haven't written in PHP/MySQL in about 8 years so I'm a bit out of it.
If you go to http://wordpress.org/support/plugin/qtranslate you should be able to post for help there.
-
Do you see any errors or can you localize the mistaken PHP function in this code?
if ( $postImg['showImage'] ) { ?>
endwhile;
else :
echo ''.__('There are no featured posts selected to display in this area (yet).',THEMENAME).'
';
endif;//Reset Query
wp_reset_query();
?>} // end if( featuredContentActive != '')
?>// Home Page Blog Posts
if (get_theme_var('homePostsActive') !== '') { ?>global $firstPage;
$firstPage = true;if ($paged > 1) {
// filter for offset and proper paging
add_filter('post_limits', 'my_post_limit');
// modify paging (to work with offset for home page)
$paged = $paged-1;
$firstPage = false;
} -
Thank you very much for your answer, it gave me some clues I will investigate.
-
I can diagnose where a search for the problem should begin, but not so much the specifics. My guess is the issue is in the plug-in.
WordPress is designed to read constantly from a database and it's reading something that looks like %TITLE%. Now I've never experimented with QTranslate, but my assumption is they are adding additional database entries for the various languages and then each post, in their respective language, is supposed to pull from it's own database.
It could be something as simple as a pointer to the database that is still using the Spanish version instead of making the switch the plugin is supposed to accomplish.
Again, QTranslate, who knows their own code, should be able to diagnose something like this very easy. I'm sorry to hear they haven't so far. Your solution is going to be either getting them to fix it or hiring someone who can edit PHP and MySQL (which usually go together anyway).
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
User intent
Hello, Can you rank on a keyword like "Loire Valley bike tours" (plural version) on the 1 st page that describes your tour with just 1 tour and not a lit of tours ? Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
I am lost at where to go. My optimization rating is 95% + and rankings are on pages 4+. I would like to know what I should do to increase my rankings.
My site is Glare-Guard.com. My Domain Authority has not moved from 17 in a long time. i have done everything to optimize the different pages. I have 90%+ ratings for the various pages, yet I am still not even close to the first page for many of the keywords I am looking to rank for. Do you have any tips or ideas? Should I try to rewrite my content and add more information? I am just at a loss for where I should go to get the right traffic to my site. Any help would be greatly appreciated.
Intermediate & Advanced SEO | | bigskyinc0 -
Has anybody ever seen (or written) a case study on increasing domain authority?
I am an in-house digital marketer for a small business in the UK. The majority of our business comes from people finding us on Google's organic SERPs for relevant search terms. Our website has been around since 1999 and we have established a great base of keyword rankings in that time from key vanity keywords in our field that generate a tonne of long tail rankings for the product pages on our site. Last year, I was given the target of increasing our websites DA from 40(something) to 60+ by the end of the year. I put a plan together at the start of the year which included things like 'create awesome content', 'promote awesome content', do 'proper' link building, do 'real' PR, make sure technical SEO is all up to scratch, increase CTR, reduce bounce rate etc etc But... I wanted to find some examples of case studies where SEO's had taken a site with a starting DA of 'whatever' and increased it to 'a way higher whatever'. I found a tonne of 'How to increase your domain authority' type blog posts which said things like 'create awesome content', 'promote awesome content', 'do proper link building' etc etc but no hard data case studies from people who had been successful in doing it! I really just wanted to make sure that the plan I was putting together, was focused on the right things! Does anybody know of any case studies? I'm still keen to check them out. Being a small business, it's often the case that once we've put a plan together, we quickly realize that we don't have the resources, time, personnel or budget to follow it through but at lest having the plan confirmed by successful case studies doing the same thing or similar would really encouraging! Thanks,
Intermediate & Advanced SEO | | RichAlive
Rich0 -
Problem with Google finding our website
We have an issue with Google finding our website: (URL removed) When we google "(keyword removed)" in google.com.au, our website doesn't come up anywhere. This is despite inserting the suitable title tag and onsite copy for SEO. We found this strange, and thought we'd investigate further. We decided to just google the website URL in google.com.au, to see if it was being properly found. Our site appeared at the top but with this description: A description for this result is not available because of this site's robots.txt – learn more. We also can see that the incorrect title tag is appearing. From this, we assumed that there must be an issue with the robot.txt file. We decided to put a new robot.txt file up: (URL removed) This hasn't solved the problem though and we still have the same issue. If someone could get to the bottom of this for us, we would be most appreciative. We are thinking that there may possibly be another robot.txt file that we can't find that is causing issues, or something else we're not sure of! We want to get to the bottom of it so that the site can be appropriately found. Any help here would be most appreciated!
Intermediate & Advanced SEO | | Gavo0 -
Forum generating automatically extra pages. Can I solve it with canonical?
Hey there Webmasters of the Universe. So i have this problem with my forum. The platform I am using it automatically creates extra pages for every page. For exampleIf my forum had one page called forum.com/examplethe same page you can find at forum.com/example?page=1If I set rel canonical into the second one pointing to the first one will that cause a problem for me?Thanks in advance!
Intermediate & Advanced SEO | | Angelos_Savvaidis0 -
User generated content (Comments) - What impact do they have?
Hello MOZ stars! I have a question regarding user comments on article pages. I know that user generated content is good for SEO, but how much impact does it really have? For your information:
Intermediate & Advanced SEO | | idg-sweden
1 - All comments appears in source code and is crawled by spiders.
2 - A visitor can comment a page for up to 60 days.
3 - The amount of comments depends on the topic, we usually gets between 3-40 comments. My question:
1 - If we were to remove comments completely, what impact would it have from seo perspective? (I know you cant be certain - but please make an educated guess if possible)
2 - If it has a negative and-/or positive impact please specify why! 🙂 If anything is unclear or you want certain information don't hesitate to ask and I'll try to specify. Best regards,
Danne0 -
Rankings drop - we've added user reviews, are they causing over optimisation on page?
Hello Hopefully can get a few opinions on this. We've added some user reviews to our website for key products. We added these approximately 3-4 weeks ago. In the last week we've seen keyword rankings drop on the pages they've been added to. For example see: http://www.naturalworldsafaris.com/wildlife/primates.aspx This page ranked well for both gorilla safari and gorilla safaris but both terms have dropped considerably (12 to 20 checking Google UK on the Moz rank checker). Due to the formatting required for the Rich Snippets (and we have the user review stars in the SERPS) the term "Gorilla safari" is perhaps becoming a bit spammy on the page. Another example would be "Borneo holidays" (up and down in the SERPS between 12-18) on this page: http://www.naturalworldsafaris.com/destinations/far-east/borneo.aspx Do you feel that these fluctuations in keyword ranking could be to do with this? Thanks
Intermediate & Advanced SEO | | KateWaite0 -
Re-Direct Users But Don't Affect Googlebot
This is a fairly technical question... I have a site which has 4 subdomains, all targeting a specific language. The brand owners don't want German users to see the prices on the French sub domain and are forcing users into a re-direct to the relevant subddomain, based on their IP address. If a user comes from a different country, (ie the US) they are forced on the UK sub domain. The client is insistent on keeping control of who sees what (I know that's a debate in it's own right), but these re-directs we're implementing to make that happen, are really making it difficult to get all the subdomains indexed as I think googlebot is also getting re-directed and is failing to do it's job. Is there are a way of re-directing users, but not Googlebot?
Intermediate & Advanced SEO | | eventurerob0