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
-
How to optimize count of interlinking by increasing Interlinking count of chosen landing pages and decreasing for less important pages within the site?
We have taken out our interlinking counts (Only Internal Links and not Outbound Links) through Google WebMaster tool and discovered that the count of interlinking of our most significant pages are less as compared to of less significant pages. Our objective is to reverse the existing behavior by increasing Interlinking count of important pages and reduce the count for less important pages so that maximum link juice could be transferred to right pages thereby increasing SEO traffic.
Intermediate & Advanced SEO | | vivekrathore0 -
How to Increase PR? I am using joomla platform for my Website.
Hi There, i have question how to increase the Pagerank? My website health according ahrefs is 90%. but still no pagerank. please help.
Intermediate & Advanced SEO | | GarySahota0 -
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 -
Removing index.php
I have question for the community and whether or not this is a good or bad idea. I currently have a Joomla site that displays www.domain.com/index.php in all the URLs with the exception of the home page. I have read that it's better to not have index.php showing in the URL at all. Does it really matter if I have index.php in my URL? I've read that it is a bad practice. I am thinking about installing the sh404SEF component on my site and removing the index.php. However, I rank pretty high for the keywords I want in Google, Bing and Yahoo. All of the URLs that show up in the searches have index.php as part of the URL. Has anyone ever used sh404SEF to remove the index.php and how did you overcome not loosing your search engine links? I don't want an existing search showing www.domain.com/index.php/sales and it not linking to the correct page which would now be www.domain.com/sales. I guess I could insert the proper redirects in the htaccess file. But I was hoping to avoid having every page of my site in the htaccess file for redirecting. Any help or advice appreciated.
Intermediate & Advanced SEO | | MedGroupMedia0 -
Problem with internal links
Hello! Our domain, http://www.unionroom.com/, is having a strange issue with OSE in that it is telling us our internal pages aren't linking to one another. An example of this is that it is showing our About page ( http://www.unionroom.com/about/ ) only having three links, but this link appears twice on every single page on the website (~200 pages) in the header and footer. We've hung around for a little while to see if OSE would correct itself, but it hasn't and this now suggests that it may be an issue with our in-linking structure. Can anyone spot any issues with our build? The rest of the websites that we produce, that are all built in the same way, all have healthy internal linking structures according to OSE. Very confusing! Any help would be greatly appreciated.
Intermediate & Advanced SEO | | unionroom0 -
Does putting a Google custom search box on make Google think my users are bouncing?
I added a Google custom search box to my pages, that's doing an advanced Google search. A lot of people are using it. So users are coming to my site from a Google search, and then often performing another Google search on my site. Should I be worried that Google may interpret the resultant user behavior as a bounce or pogo-stick? Or will the fact that the second search occurred on my site, using custom search, and with advanced parameters signal to Google that this is not a dissatisfied user returning to Google? Thanks
Intermediate & Advanced SEO | | GilReich0 -
Problem appearing 1 st with a sub page when typing my company name and product
I just did a test typing my company name followed by what I sell
Intermediate & Advanced SEO | | seoanalytics
Let's say "company green widgets " I noticed that my webpage ( which is a subpage ) doesn't appear 1 st on google when i type that keyword.... Either some website that talks about my product appears or my homepage appears. Why is that ? Could it be a canonicalization issue ? Thank you,0 -
First eCommerce site, any tips on how to increase rankings would be appreciated.
As I mentioned I'm working on a new eCommerce site and just want some hints and tip on how I can potentially get the most out of ranking it. http://fuchia.co.uk/ I've meta titled / tag most of the products with relevant keywords, we have a good social standing so far with growth on Twitter + facebook but conversions are currently low or only coming through the website's eBay store (that has no connection on the site)
Intermediate & Advanced SEO | | SEOAndy0