Viewing 1 replies (of 1 total)
  • If you feel like adding a bit of php to your template, you can change the way the featured image displays on your post or page quite easily. But the problem is that there are many ways that a featured image could be called (for example in a list of search results, in a blog, on a category page). So to foresee all these options you might have a lot of programming to do. Perhaps there is a more elegant way to do it?

    An example:
    I created a multilingual slideshow with wp-cycle by uploading images into the usual target folder (uploads/2012/september/firstslide-en.png)

    But in fact these images are only called for the default language (english in this case)

    Then I hacked wp-cycle to
    1) check the current language and get the 2-letter code
    2a) delete “en” from the filename if we’re not in english
    2b) substitute “fr” if it’s in french, etc
    3) call the localized filename for each successive slide.

    Then I upload (manually using ftp) the french version of the slide with the following path and filename: (uploads/2012/september/firstslide-fr.png)

    This works perfectly as long as I keep track of where the image files are. And of course I would not want my clients messing with this. It’s for webmaster use only.

    Hope this helps.

    NN

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: qTranslate] Different featured image per language?’ is closed to new replies.