116 pointsSerious WPMU DEV-sterI'm new here
btray77
Member
—
1st December 2009 (2 years ago)
Is there a way for me to change the ads that view on different language pages? Like a variable that is set or custom field that is set if its a translated page?
If not I would like to suggest that for a future version.
Is there a way for me to change the ads that view on different language pages? Like a variable that is set or custom field that is set if its a translated page?
If not I would like to suggest that for a future version.
It would be GREAT if there was a variable that was called language and it showed 27 for spanish or whatever... That way I can do my own ad changes for specif markets, vs hoping AdSense will convert at least enough to cover the server costs.
Ultimate Translate doesn't do anything different with the titles: unless I misunderstand what you're trying to do, you should be able to use any other functionality that applies to post titles.
i am trying to replace the value of the page title (document title value - meta value...)
so
1. retrieve translated version of the post or page's title
2. insert this translated version into <title>xxx</title>
i use a plugin called all in one seo - that can override the meta title value.
the hook within all in one seo is: aioseop_title_page
so the reference above was a question about how to pass the translated title of the post or page back to this plugin to create a unique language/translated specific meta title value...
currently the contents of the post or page is translated which is awesome - but the document title remains in english...
Responses (8)
Founder & CEO — 1st December 2009 (2 years ago) #
So are you looking at inserting custom ads for every language?
That could be neat... but adsense (or similar) would handle that automatically I imagine?
Member — 2nd December 2009 (2 years ago) #
To answer your question, yes...
It would be GREAT if there was a variable that was called language and it showed 27 for spanish or whatever... That way I can do my own ad changes for specif markets, vs hoping AdSense will convert at least enough to cover the server costs.
Thanks
-Brad
Member — 2nd December 2009 (2 years ago) #
I have that implemented on my site http://www.maisapostas.com but for categories.
Its a mixed solution wordpress/openx
If you want use openx you cant also show ads based on location, an example is you can show american ads to us visitors and british to uk visitors.
If you want to use openx to manage your ads let me know, I share what you need to do.
Member — 2nd December 2009 (2 years ago) #
I'd love to here what you know about openx. I played with it a while back, but didn't ever do anything with it.
I was thinking about using wp-ip2nation also...
-Brad
Developer — 2nd December 2009 (2 years ago) #
This isn't exactly the same, but you should be able to call the following in your theme and get the two-letter language code (e.g. "fr" for French):
get_query_var('language_pattern');Member — 4th December 2009 (2 years ago) #
hi
any ideas how to pass the translated title of the post or page back to ALL IN ONE SEO PLUGIN?
i use this function elsewhere:
add_filter('aioseop_title_page','FUNCTIONNAME);
so the hook into AIOSEO Plugin to change the title of the page is: aioseop_title_page
the question? how to pass translated title of page to this plugin to change the document title on the fly?
cheers
bryan
Developer — 4th December 2009 (2 years ago) #
zolabud,
Ultimate Translate doesn't do anything different with the titles: unless I misunderstand what you're trying to do, you should be able to use any other functionality that applies to post titles.
Member — 4th December 2009 (2 years ago) #
hi
i am trying to replace the value of the page title (document title value - meta value...)
so
1. retrieve translated version of the post or page's title
2. insert this translated version into <title>xxx</title>
i use a plugin called all in one seo - that can override the meta title value.
the hook within all in one seo is: aioseop_title_page
so the reference above was a question about how to pass the translated title of the post or page back to this plugin to create a unique language/translated specific meta title value...
currently the contents of the post or page is translated which is awesome - but the document title remains in english...
make sense now?
cheers
bryan
Become a member