add_image_size() width not actually working

After playing around a little more, the image does look like it’s being resized by wordpress on upload to the 708 width, however, when inserted by the media library, the image is automatically scaled down to 474px which is the width of the text column. This is correct. Themes define a global variable called “$content_width” … Read more

Make all images displayed in single.php a certain size

take a look at this page in the Codex for an intro to how WordPress works with images, specifically the Image Size section: http://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages not sure what the import from Blogger did exactly, but you can start by attempting to change the image size in the editor.

Get an array containing ONLY post IDs of attached images

The following code should work for you, $images = get_children( array(‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’) ); $image_ids = array(); if($images){ foreach( $images as $imageID => $imagePost ){ array_push($image_ids, $imageID); } } The array $image_ids would get you the image IDs.

Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings

you should use this instead: <img src=”https://wordpress.stackexchange.com/questions/162608/<?php echo site_url();?>”https://wordpress.stackexchange.com/wp-content/themes/twentytwelve/…png”> You’ve installed your wordpress in a abc.com/wordpress folder. So when you use the backslash you are refering to the root of your domain, instead of the folder were you’ve installed your WP. Hope that is helps. Cheers

How do I display image files as links?

There’s no such “non-coding newbie”-bulk-thing for the process. You have to do that for each of the image, when you are uploading the image to the site and/or post/page. On the right panel of the media upload pane, change “Link To” to “Custom URL” and put the URL (whatever you like – internal or external) … Read more

Get the name of an image [duplicate]

I have and succeed. How to post_mime_type different? I have added the post_mime_type in functions.php add_filter(‘upload_mimes’, ‘pixelo_upload_types’); function pixelo_upload_types($existing_mimes=array()) { $existing_mimes[‘otf’] = ‘otf’; $existing_mimes[‘ttf’] = ‘ttf’; return $existing_mimes; } then I tried here and it did not work. <?php $args = array( ‘numberposts’ => -1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘post_type’ => ‘attachment’, ‘post_parent’ … Read more

Images not showing after moving site

Doing a search via PHPMyAdmin did not show up any instances of the wrong URL. However, when I searched and replaced using this plugin https://wordpress.org/plugins/search-and-replace/ I found certain URLs were incorrect. Some changes could not be made with the plugin as they were serialized.