Fairweb
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: the_post_image not workingIs that what you wanted ?
<?php $img_id = get_post_image_id(); // orginal image $original_img = wp_get_attachment_image_src ($img_id, 'original'); list($original_src, $original_width, $original_height) = $original_img; // medium image $medium_img = wp_get_attachment_image_src ($img_id, 'medium'); list($medium_src, $medium_width, $medium_height) = $medium_img; // option medium max width $max_width = intval(get_option('medium_size_w')); $begin_a = ''; $end_a = ''; if ($original_width > $max_width) { $begin_a = '<a href="'.$original_src.'">'; $end_a = '</a>'; } ?> <?php echo $begin_a;?><?php the_post_image( 'medium','class=alignleft' ); ?><?php echo $end_a;?>
Forum: Alpha/Beta/RC
In reply to: post_image and galleryEdit your post and switch to html mode. The gallery short tag should look like this.
[gallery link="file"]
Let’s say your image ID is 55, write :
[gallery link="file" exclude=55]
The different settings that can be used for this short tag are in
function gallery_shortcode($attr)
in wp-includes/media.phpForum: Alpha/Beta/RC
In reply to: the_post_image not working$img_id = get_post_image_id(); $original_img = wp_get_attachment_image_src ($img_id, 'original'); echo $original_img[0];
Forum: Alpha/Beta/RC
In reply to: the_post_image not workingWhen you upload your image, you should have the choice to insert it into your post and add as thumbnail. If you click on add as thumbnail, you should see it in a box on the left called Post thumbnail. Save your post and it should display correctly.
Forum: Plugins
In reply to: add_action and set_roleThanks for answering me. I’m also changing users’ roles and capabilities on the fly in a similar way as the one you are using. However, this did not quite sort out my problem.
I just wanted to add an action when an admin user changes any other user’s role through the core backend.
If you have an idea…
Thanks ??
Forum: Fixing WordPress
In reply to: Add author information to the usermeta tableIn order to add usermeta, just use the update_usermeta function. If the meta key exists, it will update it, if not, it will create it.
I have the same problem. Did you manage to find out where it came from and / or correct it ?
Forum: Fixing WordPress
In reply to: wp_list_pages title_li with special charsThanks ! I’m sorry, I have searched a long time before asking and missed the information on the page you mentionned. Sorry and thanks for your reply.
Forum: Plugins
In reply to: wpgoogleusermap in actionfw_gum.php doit être placé dans le répertoire de ton thème. Ensuite, tu crées une page dans wordpress et tu choisis fw_gum pour modèle de page. Cette page devrait afficher la carte.
the fw_gum.php file should be placed in your theme directory. Then create a new page in WordPress and choose fw_gum for page template. This page shouul diplay the map.
Forum: Installing WordPress
In reply to: didn’t work 4 meDo you have an error message when you try to activate ?
Contact me in private and I’ll try to help.Forum: Plugins
In reply to: wpgoogleusermap in actionYou may see it in action on olmyr.com
Forum: Fixing WordPress
In reply to: HOWTO: make localization work on 64 bit systemsThanks ! I was getting mad with this ! The problem occured for me on version 2.0.5 and I finally sorted it out with your solution.