Image.php Problem – Post Images Not Displaying In It
While inserting the image into the post make sure the Link URL is set to Post URL.
While inserting the image into the post make sure the Link URL is set to Post URL.
Here’s a function you can put in your theme’s functions.php file to force your own default avatar. Update the $myavatar line to point to your image path/name: // Adds a new default avatar to the list in WordPress admin add_filter( ‘avatar_defaults’, ‘mytheme_addgravatar’ ); function mytheme_addgravatar( $avatar_defaults ) { $myavatar = get_bloginfo(‘stylesheet_directory’) . ‘/images/my-avatar.gif’; $avatar_defaults[$myavatar] = … Read more
This should help you.. <?php function remove_images( $content ) { //Run only on the front page, in your case the homepage if(is_front_page()) { //Remove the images $postOutput = preg_replace(‘/<img\b[^>]++>/i’,”, $content); //Get the first 200 characters only, you can change the number if you want $postOutput = wp_html_excerpt($postOutput, 200); return $postOutput; } return $content; } add_filter( … Read more
Fancybox (or some other javascript / jQuery element) is setting the width of the image in your markup. If you look at Firebug, you’ll see the div element width as 471px, which is 10px wider than your image width.
You can use: <?php $image_attributes = wp_get_attachment_image_src( $attachment_id, array(1024,1024) ); ?> <a href=”https://wordpress.stackexchange.com/questions/37124/<?php echo $image_attributes[0]; ?>”>xxx</a> See http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src If the picture is too small the original will show, otherwise cropped version (1024×1024). Update: Didn’t understand your question correct. Here is what you need: First of all add a thumbnail size for your custom max size … Read more
One way to do this would be to use post__not_in because you are using ‘orderby’ => rand,. You will need to throw the post or attachment ID ( I suppose you can also use something else) into and array in the first loop and use that array in as a second query parameter, in essence … Read more
My first suggestion is to output a WXR formatted file from phpNuke if possible. I’m not familiar with it, however I’m pretty sure it’s possible on any platform with database access. If you aren’t familiar with WXR, install a sandbox WP environment, create a few posts, categorize them, create and assign parent pages, upload image … Read more
<img src = “https://wordpress.stackexchange.com/questions/38936/<?php bloginfo(“stylesheet_directory’);?>/images/file.png” /> http://codex.wordpress.org/Function_Reference/bloginfo
for your first quetion : you can either use the excerpt() instead of the_content() in your loop, or you can use this function below : function limitcontent($limit) { $content = explode(‘ ‘, get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(” “,$content).’…’; } else { $content = implode(” “,$content); } $content = preg_replace(‘/\[.+\]/’,”, $content); $content … Read more
After inserting the image, click it again and click the small edit window. You can then add inline CSS using the Advanced Settings already built into WordPress.