Display a post attachment depending on the caption

Can you try something along these lines and report back the result? <?php if(qtrans_getLanguage()==’en’): ?> // attachment if statement <?php else if(qtrans_getLanguage()==’fr’): ?> // attachment if statement <?php endif; ?> Technically you could omit the second else if statement and replace it just with <?php else : ?> assuming you only have two languages you … Read more

Extra richtext admin textfield for custom posttype with toolbar tabs?

Maby you should use the wp_editor instead? Then you have more control of the editor. An example if you have a meta box called “myfield” in the custom post type. If you want a simple editor you can do like this: echo ‘<form action=”” method=”post” target=”_blank”>’; wp_editor(‘<p>Some content</p>’, ‘myfield’ ); echo ‘<input type=”submit” value=”Submit” /></form>’; … Read more

How to change Header image depending on language [closed]

This doesn’t have much to do with Genesis, other than you need to hook into the header in one of several ways, with Simple Hooks http://wordpress.org/plugins/genesis-simple-hooks/ or in functions.php. I’ll leave that to you. But using <?php echo qtrans_getLanguage(); ?> do something like this: $currentLang = qtrans_getLanguage(); if($currentLang == ‘fr’) { //show french logo $imageName … Read more