For example: I’m a Hungarian user, but my IP shows I’m in Germany while I use an English browser. The most convenient would be English for me, because that is my choice.
There’s a PHP superglobal variable, called $_SERVER
. It stores information about the server running the page and about the client who requested the page. One string of this array’s parameters is called HTTP_ACCEPT_LANGUAGE
, sent by the browser, which in my case will be “en”. It can be accessed from PHP as: $_SERVER['HTTP_ACCEPT_LANGUAGE']
.
This can be used to get the specified content for example with a custom field which contains values what this string can be.
Unfortunately I don’t have the time right now to create a complete example, but if you’re interested in this method, I’ll prepare one.
Related Posts:
- How to create a language selection homepage? [closed]
- Multilingual WordPress plugins [closed]
- Is there a plugin that will facilitate displaying a website (static pages, not a blog) content in two languages [closed]
- Any plugins to help with multilingual content? [closed]
- Resizing images to the actual size used in the editor?
- Pretty URLs for File Uploads?
- Pros/Cons of “WP e-commerce” and “Shopp” plugins [closed]
- WordPress as a CMS Membership website
- Recommendations for a LaTeX Plugin? [closed]
- Limiting sessions to one IP at a time
- How can I create a Quora or Stack Exchange facility without using a specialist theme?
- How to Show Different Sidebars on Specific Pages?
- Analytics plugins that allow for inclusion of _trackPageLoadTime()?
- Advice for implementing single sign-on?
- Blubrry PowerPress vs. PodPress? [closed]
- How to have “Page Title” different than “Menu Title” in wordpress 3.0.3?
- Paid member plugin with some specific features [closed]
- Plugin for event management? [closed]
- How to add a category or tag to media at upload time with the browser uploader?
- Is there a wordpress listserv or email group plugin?
- System audit plugin? [closed]
- Plugin to require Twitter or Facebook login before posting a comment [closed]
- Plugin to embed local video into WordPress? [closed]
- Non-Linear Questionnaires in WordPress
- The holy grail of Event Management Plugins? [closed]
- Amazon-like star ratings plugin needed. Lightweight and effective. Prefer Ajax
- OpenX Alternative for wordpress? [closed]
- Photo gallery on profile page? [closed]
- WordPress plugin for scheduling appointments [closed]
- Displaying Numeric Pagination vs. Previous and Next Links in WordPress?
- Shopping Cart Integration — Experiences with Popular eCommerce Solutions [closed]
- add a woocommerce shop to every buddypress user [closed]
- How to make Tag Aliases
- Create a simple shop’s website with products list
- Tag system like Quora?
- Live blogging plugins? [closed]
- Plugin to turn off RTE on select page [closed]
- jQuery Image Annotation
- Is there a plugin which allows me to save additional, invisible content per post?
- have secret admin level user or build backdoor
- Recommendations for requesting quotes? [closed]
- Post-by-mail similar to WordPress.com or Posterous?
- How to add pagination with page numbers rather than next/previous links?
- Google maps plugin [closed]
- What is a good member directory plugin? [closed]
- Coupon codes and wordress; Membership plugin, tertiary plugin or shopping cart? [closed]
- Posting Instagram Photos Automatically
- Plugin To Insert Chinese Characters in Posts or Pages
- How to remove some specfic navigation links only from selected page/pages?
- How to pull image from first post and display it on monthly Archive page?
- What is the best method for handling comments?
- Add share links to all blog posts on homepage
- Log hits on advertiser images [closed]
- Build a rss powered website network
- Making Comments Editable?
- Let users share posts via Twitter?
- Options for logging events in WordPress
- A good plugin/plugin set for a sports team site? [closed]
- Viewing post while editing
- Please tell me any free customize product designer plugin (like customize tshirt, mobile cover, mug etc.) . [closed]
- Limiting sessions to one IP at a time
- wordpress as law draft discussion site [closed]
- Plugin for loading comments on-demand [closed]
- WYSIWYG-able Footnote Plugin [closed]
- Add Google Map By Address
- Plugin like the “I Love It” Theme? [closed]
- How to unpublish multiple posts in one click? [closed]
- FYI: How to make Time.ly all-in-one event calendar mobile friendly [closed]
- How to add style to a string of text throughout WordPress website?
- Creative Clans Embed Script plugin equivalent? [closed]
- ecommerce plugin with “buy for a friend” feature [closed]
- PHPlist & new posts notification?
- Downloads Gallery plugin? [closed]
- CAPTCHA plugin where I can use my own images and ask my own questions? [closed]
- Configure paragraph style without editing CSS
- Recommende e commerce plugin for simple needs [closed]
- Easy (no code) way to open a form in a lightbox (a plugin?) [closed]
- Good plugin for managing outbound links? [closed]
- Simple webshop-plugin? [closed]
- unautomated subscription plugin [closed]
- Where can i get wpcom-carousel? [closed]
- Photo comment plugin [closed]
- Posts with Tag on Bottom of Page
- Plugin Needed (User Register – have own profile) [closed]
- Looking for a simple e-commerce plugin [closed]
- Suggest mp3 player plugin for a band website? [closed]
- Subscribe to email
- Send email on new comment when no admin approval needed?
- Can Shopp or WP ecommerce create something as extensive as these sites? Other recommended solutions?
- Adding language attribute to homepage
- Attach a file to a post
- Plugin Recommendation: Slideshow Gallery Delayed Image Loadging [closed]
- Plugin to Link Posts by Title [closed]
- Best Shopping Cart for WordPress [closed]
- Membership Plugin [closed]
- Any Good Analytics Plugins for WordPress? (standalone)
- Can someone point me toward a plugin for this specific featured content display? [closed]
- Redirect user on second visit on page
- Weather Plugin Recommendation [closed]
- scrolling product image gallery [closed]