Wenci
Forum Replies Created
-
Forum: Plugins
In reply to: [Ceceppa Multilingua] getting media translation by media IDHi again Alessandro and hi gpz_
i just tested your dev version of the plugin and didn’t got it working sadly but i opted for a different way to get translated text from image, by simply putting the translated text in the description of the image but this cant be done for a multi language sites, hopefully i m using only english and italian now.
So if i can help you to test it deeper it would be really cool,i used your code inside the Dynamic Featured Image (this is a wonderful plugin to get multiple featured images inside a slideshow like this tut show: http://ankitpokhrel.com.np/blog/sliding-featured-image-thumbnails-in-your-wordpress-theme/)plug-in loop here is the code:
<?php if ( function_exists('dfi_get_featured_images') ) { $featuredImages = dfi_get_featured_images(); if( !is_null($featuredImages) ){ foreach($featuredImages as $images) { $caption2 = dfi_get_image_title($images['full']); $caption3 = dfi_get_image_caption($images['full']); $ib = dfi_get_image_id($images['full']); if($lang!=('it_IT')){ $caption4 = get_post_meta( $ib , '_wp_attachment_image_alt', true); }else{$caption4 = CMLMedia::get_alternative_text( $ib->ID,'it_IT' );} echo "<div class='desccont'>"; echo "<p class='desc'>" . $caption2 . "</p>"; echo "<p class='desc'>" . $caption3 . "</p>"; echo "<p class='desc'>" . $caption4 . "</p>"; echo "</div>";} } else { if ( has_post_thumbnail() ) { echo '' . the_post_thumbnail( 'full', array( 'class' => 'aligncenter' ) ) . ''; } } } else { if ( has_post_thumbnail() ) { echo '' . the_post_thumbnail( 'full', array( 'class' => 'aligncenter' ) ) . ''; } } ?>Did i used your code correctly? And a second question:
-A post setted to All languages will show image translated fields in the non-main language post?
To make it easy: I have a post in All languages and my main language is english, when i m on the italian version of the site, the images in the post will show his Italian Translated Alt text?Forum: Plugins
In reply to: [Ceceppa Multilingua] Append breaks the headYes you are definetly right 🙂 thanks for your help.
Forum: Plugins
In reply to: [Ceceppa Multilingua] Append breaks the headhttp://it.tinypic.com?ref=15q5ann
here in the first image you can see the google inspector that read the code inside the body while here in this second link the source code view you can see the code before the jquery apply and is rendered in the head
<img src=”http://i58.tinypic.com/107mjpy.jpg” border=”0″ alt=”Image and video hosting by TinyPic”>
The require function could work really well if a php template is used as the append function can give problems with old browser like ie8 or else, it would be easier to place the flags server side and not to move em from the head
thanks four your time
Thanks for your help, a rebuild for the permalink map worked fine
freque.unce do you have both jetpack and mediaelement.js installed?
looks like they might go in conflict..my method above was working for my local developing site on the hosted site with both mediaelement and jetpack installed:
at first the track wasn’t showing up with the audio closing tag; then i used the[mejsaudio src="http://xxx.com/xxx/wp-content/uploads/music/abc.mp3" type="audio/mp3" width="500" height="30"] [/mejsaudio]and it worked fineForum: Plugins
In reply to: [MediaElement.js - HTML5 Video & Audio Player] Audio player not showingthaaaaaaaaaaaanks a lot lost_usr!!!!
I had the same problem! the solution is to close the audio tag with square brackets like this:
[audio src="http://site.XXX/XXX/XXX.mp3" type="audio/mp3" width="500" height="30"] [/audio]😀
This is the solution i think it will work for the video player too so close it with [/video]