jtrollia
Forum Replies Created
-
Forum: Plugins
In reply to: [HTML5 jQuery Audio Player] Music isn't playedDone 🙂
Forum: Fixing WordPress
In reply to: Invisible facebook like buttonOkay, thanks for feedback.
Forum: Fixing WordPress
In reply to: Invisible facebook like buttonHi,
I still have this problem. Are you running on localhost too ? I don’t see any reasons for that, g+ and twitter are working well anyway…
Forum: Fixing WordPress
In reply to: Display post in pop up pageOkay, here is what I did to solve my problem. It isn’t exactly what I was looking for but anyway…
I created a new page template and displayed my pop up page with it. For more information, have a look at “Specialized page template” section over here.
Forum: Plugins
In reply to: [HTML5 jQuery Audio Player] Music isn't playedAyo,
Thanks for all these tips ! I finally solved my (stupid) problem thanks to your first point…
The problem was, songs had korean chars in their title. Then, when uploaded looked like “????” instead of their original form and couldn’t be linked properly.
All the best, sista.
Forum: Plugins
In reply to: [Email newsletter] Newsletter form doesn't workHi, thanks but alerts aren’t displayed when I try to subscribe 🙁
Forum: Fixing WordPress
In reply to: Pagination outside the Loop//Not a bump
How I solved my problem :
I put the following code in functions.php :
if ( ! function_exists( 'pagination' ) ) : function pagination() { global $wp_query; $big = 999999999; global $pagination; $pagination = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); } endif;Then, I call pagination(); right after the Loop. I display the result at the bottom of my page with :
<?php if ($pagination=='') { echo "Tous les résultats sont affichés."; } else { echo $pagination; } ?>If it helps somebody else.
Forum: Fixing WordPress
In reply to: Get image / thumbnail dimensionsThat’s exactly what I needed… Thanks a lot !
Forum: Fixing WordPress
In reply to: Get image / thumbnail dimensionsI want to get the dimension of the posts thumbnails displayed on index page.
So I plan to use get_attachment_image_src function. In order to do so, I need to know the thumbnail id (“attchment_id” in the code).
Forum: Fixing WordPress
In reply to: Get image / thumbnail dimensionsI’m trying to use this in the loop (index). I’m using gridly.
I was trying codex first example :
<?php $attachment_id = 8; // attachment ID $image_attributes = wp_get_attachment_image_src( $attachment_id ); // returns an array ?> <img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2]; ?>">Without success since I can’t get the attchment_id… So it doesn’t return anything 🙁