Title: annabinna's Replies | WordPress.org

---

# annabinna

  [  ](https://wordpress.org/support/users/annabinna/)

 *   [Profile](https://wordpress.org/support/users/annabinna/)
 *   [Topics Started](https://wordpress.org/support/users/annabinna/topics/)
 *   [Replies Created](https://wordpress.org/support/users/annabinna/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/annabinna/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/annabinna/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/annabinna/engagements/)
 *   [Favorites](https://wordpress.org/support/users/annabinna/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] How to use mo files in my theme to change static strings when switch language](https://wordpress.org/support/topic/how-to-use-mo-files-in-my-theme-to-change-static-strings-when-switch-language/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/how-to-use-mo-files-in-my-theme-to-change-static-strings-when-switch-language/#post-5903779)
 * Ok. Solved! I’ve done a mistake in the text-domain name in some functions.
 * Now it works like a charm!
 * Thanks for this piece of code guys!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Feed Leaflet Map with WP_Query() and wp_json_encode()](https://wordpress.org/support/topic/feed-leaflet-map-with-wp_query-and-wp_json_encode/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/feed-leaflet-map-with-wp_query-and-wp_json_encode/#post-5652580)
 * Hey! I’ve forgoten to close this thread!
 * Finally I’ve found the problem an the solution at once. The problem was in the
   javascript function. I’ve only had to move the js code to a separated file and
   to enqueue it in _functions.php_ after the main leaflet js file. It was all!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Feed Leaflet Map with WP_Query() and wp_json_encode()](https://wordpress.org/support/topic/feed-leaflet-map-with-wp_query-and-wp_json_encode/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/feed-leaflet-map-with-wp_query-and-wp_json_encode/#post-5652227)
 * I’ve done some changes in the way we feed the geodata array and move the `echo
   wp_json_encode( $geodata );` inside the script tag, as a javascript variable.
 * Now, the page is ok but still not displaying the map…
 *     ```
       <?php
       /**
        * @package Illes de futur
        */
       ?>
   
       <!-- http://asmaloney.com/2014/01/code/creating-an-interactive-map-with-leaflet-and-openstreetmap/ -->
   
       <section id="scene-map">
   
       	<div id="map" style="heigth: 440px; border: 1px solid #aaa;"></div>
   
       	<?php
   
       	  	$terms = get_the_term_list( $post->ID, 'production' );
       	  	$id = get_the_ID();
   
       	  	$args = array(
       	  		'post_type' => 'scene',
       	  		'tax_query' => array(
       	  			'taxonomy' => 'production',
       	  			'field' => 'slug',
       	  			'terms' => $terms,
       	  			),
       	  		'exclude' => $id
       	  		);
   
       		$geodata = array();
   
       		$geolocated_scenes = new WP_Query($args);
   
       		if( $geolocated_scenes->have_posts() ) :
   
       			while( $geolocated_scenes->have_posts() ) : $geolocated_scenes->the_post();
   
       				$geodata[] = array(
       					'name' => get_the_title(),
       					'url' => get_post_permalink(),
       					'lat' => get_post_meta( $post->ID, 'latitude', true ),
       					'lng' => get_post_meta( $post->ID, 'longitude', true ),
       				);
   
       			endwhile;
   
       			wp_reset_postdata();
   
       		else : ?>
   
       			<p><?php __('This scene has not geolocation data', 'illles_de_futur'); ?></p>
   
       		<? endif;
   
       	?>
   
       	<script type="text/javascript">
   
       		var geodata = <?php echo wp_json_encode( $geodata ); ?>;
   
       		var map = L.map( 'map', {
       			center: [20.0, 5.0],
       			minZoom: 2,
       			zoom: 2
       		});
   
       		L.tileLayer( 'http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
       			attribution:'&copy; <a href="http://osm.org/copyright" title="OpenStreetMap" target="_blank">OpenStreetMap</a> contributors | Tiles Courtesy of <a href="http://www.mapquest.com/" title="MapQuest" target="_blank">MapQuest</a><img src="http://developer.mapquest.com/osm/mq_logo.png" width="16" height="16" />',
       			subdomains: ['otile1' , 'otile2' , 'otile3' , 'otile4']
       		}).addTo( map );
   
       		for ( var i=0; i < geodata.length; ++i )
       		{
       			L.geodata( [geodata[i].lat, geodata[i].lng] )
       				.bindPopup( '<a href="' + geodata[i].url + '">' geodata[i].name + '</a>' )
       				.addTo( map );
       		}
   
       	</script>
   
       </section>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to style jetpack's slideshow gallery to be fluid](https://wordpress.org/support/topic/how-to-style-jetpacks-slideshow-gallery-to-be-fluid/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-style-jetpacks-slideshow-gallery-to-be-fluid/#post-5115913)
 * I’ve changed the css lines to these, but still doesn’t work!
 *     ```
       .slideshow-window,
       .jetpack-slideshow {
           background: transparent !important;
           border: transparent !important;
           max-height: 550px;
       }
   
       .slideshow-slide {
           width: 100%;
           height: auto !important;
           overflow: hidden;
           }
   
       .slideshow-slide img {width: 100%;}
   
       .slideshow-line-height-hack {}
       .slideshow-slide-caption {}
   
       .slideshow-controls {}
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Image uploader fails to display them while it upload files correctly](https://wordpress.org/support/topic/image-uploader-fails-to-display-them-while-it-upload-files-correctly/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-uploader-fails-to-display-them-while-it-upload-files-correctly/#post-5087844)
 * Just fixed!
 * I’ve forgotten to change the path where uploaded files ara saved in the media
   options when I moved the site from a subfolder to the root last week.
 * After changing the path, image uploader works again!
 * Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Infinite scroll, when loaded new content remove old?](https://wordpress.org/support/topic/infinite-scroll-when-loaded-new-content-can-it-be-pushed-to-the-top/)
 *  [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/infinite-scroll-when-loaded-new-content-can-it-be-pushed-to-the-top/#post-5088178)
 * Hi _jerryskate_!
 * Do you display only the last post at the top or do you want to reverse the order
   of all the post column?
 * In the former, you might [use multiple loops as wordpress reference for `the_loop()` function indicates](http://codex.wordpress.org/The_Loop).
   In the latter, you need to use a query parameter: `query_posts( $query_string.'&
   order=DESC' );` in your actual loop, [see an example in this page](http://codex.wordpress.org/Function_Reference/query_posts).
 * Good luck!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Images](https://wordpress.org/support/topic/images-98/)
 *  [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-98/#post-5086878)
 * May are you using `get_attachment_image_*`function in your theme?
 * I think your problem is related with the size of the retrieved image (probably‘
   thumbnail’). [Look here](http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src)
   to learn how it works.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] More than a plugin, a way to learn how to secure your wordpress installation](https://wordpress.org/support/topic/more-than-a-plugin-a-way-to-learn-how-to-secure-your-wordpress-installation/)
 *  Thread Starter [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/more-than-a-plugin-a-way-to-learn-how-to-secure-your-wordpress-installation/#post-7831908)
 * Ja fa la seva feina només d’instal·lar el connector, però a més ajuda a aprendre
   com millorar la seguretat de la teva instal·lació de wordpress amb ajusts humans
   i tècnics.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [is_category() and in_category() not working](https://wordpress.org/support/topic/is_category-and-in_category-not-working/)
 *  [annabinna](https://wordpress.org/support/users/annabinna/)
 * (@annabinna)
 * [17 years ago](https://wordpress.org/support/topic/is_category-and-in_category-not-working/#post-1236954)
 * I’m in the same trouble, but I want to modify the archive.php instead of single.
   php.
 * I used this code at the top of the file:
 *     ```
       <?php
       global $wp_query;
   
       if is_category('enunaparaula-cat') {
       	get_header('enunaparaula');
       } else {
           get_header();
       } ?>
       ```
   
 * I have the _header-enunaparaula.php_ too and **nothing happens**! Somebody knows
   why not?

Viewing 9 replies - 1 through 9 (of 9 total)