Thumbnail gallery by date and taxonomy

It’s hard to know what aspect of this you are asking for help with, but as a developer I would create it like this: Create a page for each image gallery, perhaps using WordPress’s built in gallery feature Set a featured image on each gallery page Create a set of relationship fields in Advanced Custom … Read more

Plain image uploading – no links, no classes, no sizes

There’s a good answer to this question here: http://www.sitepoint.com/wordpress-change-img-tag-html/ His second example is pretty much what you’re looking for. Let me know if you need any further help with this. The main chunk from that answer that concerns you is this: function image_tag($html, $id, $alt, $title) { return preg_replace(array( “https://wordpress.stackexchange.com/”.str_replace(‘//’,’//’,get_bloginfo(‘url’)).’/i’, ‘/s+width=”d+”/i’, ‘/s+height=”d+”/i’, ‘/alt=””/i’ ), array( … Read more

attachment.php & flexslider—linking thumbnail to specific image

The answer was to assign a count to each attachment: $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID, ‘order_by’ => ‘menu_order’, ‘order’ => ‘DESC’ ); $attachments = get_posts( $args ); if ( $attachments ) { $count = 0; foreach ($attachments as $attachment) { $link = get_permalink($attachment->ID); $link = … Read more

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.

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)