<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Tag: attachment</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: attachment</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 03:14:01 +0000</pubDate>

<item>
<title>digitalnature on "WP_Cache works in 2.8.4?"</title>
<link>http://wordpress.org/support/topic/309914#post-1293991</link>
<pubDate>Wed, 25 Nov 2009 23:39:21 +0000</pubDate>
<dc:creator>digitalnature</dc:creator>
<guid isPermaLink="false">1293991@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I have the same problem :(
&#60;/p&#62;</description>
</item>
<item>
<title>patricia1706 on "Image Attachment ol link to Shadow Box"</title>
<link>http://wordpress.org/support/topic/335574#post-1293573</link>
<pubDate>Wed, 25 Nov 2009 17:54:56 +0000</pubDate>
<dc:creator>patricia1706</dc:creator>
<guid isPermaLink="false">1293573@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've got a post template page pulling out all image based post attachments into an OL, when li text is clicked a Shadow Box pops up with the full size image.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;ol&#38;gt;
&#38;lt;?php
        $args = array(
          &#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
          &#38;#39;post_mime_type&#38;#39; =&#38;gt; &#38;#39;image&#38;#39;,
          &#38;#39;numberposts&#38;#39; =&#38;gt; -1,
          &#38;#39;post_status&#38;#39; =&#38;gt; null,
          &#38;#39;post_parent&#38;#39; =&#38;gt; $post-&#38;gt;ID,
          &#38;#39;orderby&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
          &#38;#39;order&#38;#39; =&#38;gt; &#38;#39;desc&#38;#39;
          );
        $attachments = get_posts($args);
        if ($attachments) {
          foreach ($attachments as $attachment) {
            echo &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;.wp_get_attachment_url($attachment-&#38;gt;ID).&#38;#39;&#38;quot; rel=&#38;quot;shadowbox&#38;quot;&#38;gt;&#38;#39;;
            echo $attachment-&#38;gt;post_title;
            echo &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
          }
        }
    ?&#38;gt;
&#38;lt;/ol&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've added the rel=&#34;shadowbox&#34; to the link to have it pop go through the Shadowbox.js plug-in, but it does not pull up the image title, nor the caption, nor recognize the grouping of attachments as a 'gallery' of images (i.e. 1 of 6; and not 1 of 1)&#60;/p&#62;
&#60;p&#62;Any help would be great! Thanks in advance
&#60;/p&#62;</description>
</item>
<item>
<title>Tbuyle on "Filter and display attachments"</title>
<link>http://wordpress.org/support/topic/233012#post-1293187</link>
<pubDate>Wed, 25 Nov 2009 11:11:50 +0000</pubDate>
<dc:creator>Tbuyle</dc:creator>
<guid isPermaLink="false">1293187@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Works just great for me. Thanks 1
&#60;/p&#62;</description>
</item>
<item>
<title>DavidPotter on "Get attchment by ID or by post_name"</title>
<link>http://wordpress.org/support/topic/332936#post-1291829</link>
<pubDate>Tue, 24 Nov 2009 04:09:05 +0000</pubDate>
<dc:creator>DavidPotter</dc:creator>
<guid isPermaLink="false">1291829@http://wordpress.org/support/</guid>
<description>&#60;p&#62;The examples on that page didn't work.  Here is what ended up working for me:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$parameters = array(
    &#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
    &#38;#39;post_parent&#38;#39; =&#38;gt; null,
    &#38;#39;post_mime_type&#38;#39; =&#38;gt; &#38;#39;image&#38;#39;);
$attachments = get_children($parameters);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Specifying null for post_parent was the key.&#60;/p&#62;
&#60;p&#62;Thanks for the help.&#60;br /&#62;
&#60;strong&#62;David&#60;/strong&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>dcjob on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1291684</link>
<pubDate>Tue, 24 Nov 2009 01:09:20 +0000</pubDate>
<dc:creator>dcjob</dc:creator>
<guid isPermaLink="false">1291684@http://wordpress.org/support/</guid>
<description>&#60;p&#62;How to do it? In &#34;Search&#34; function, no options. Or I need add an entry in config file? Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>omgitztrey on "Image sizes lost"</title>
<link>http://wordpress.org/support/topic/290227#post-1291199</link>
<pubDate>Mon, 23 Nov 2009 17:33:20 +0000</pubDate>
<dc:creator>omgitztrey</dc:creator>
<guid isPermaLink="false">1291199@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Has anyone tested @Ziyphr's fix yet?
&#60;/p&#62;</description>
</item>
<item>
<title>t31os_ on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1290123</link>
<pubDate>Sun, 22 Nov 2009 16:30:43 +0000</pubDate>
<dc:creator>t31os_</dc:creator>
<guid isPermaLink="false">1290123@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I think you're missing the point, if you query for any, you'll also end up with Drafts and Revisions, etc... in the results..
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Get attchment by ID or by post_name"</title>
<link>http://wordpress.org/support/topic/332936#post-1286891</link>
<pubDate>Thu, 19 Nov 2009 15:14:10 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1286891@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Look at &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_children&#34;&#62;Function_Reference/get_children&#60;/a&#62;.
&#60;/p&#62;</description>
</item>
<item>
<title>DavidPotter on "Get attchment by ID or by post_name"</title>
<link>http://wordpress.org/support/topic/332936#post-1285156</link>
<pubDate>Wed, 18 Nov 2009 02:08:26 +0000</pubDate>
<dc:creator>DavidPotter</dc:creator>
<guid isPermaLink="false">1285156@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm writing a plugin to add a shortcut for displaying an image uploaded to your WordPress gallery on any post or page using a shortcode.  I'm using the following statement to get attachments:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$attachments = get_posts(&#38;#39;post_type=attachment&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;However, this doesn't work reliably.  It doesn't always include the specified attachment, even if the attachment exists in the wp_posts table.  What would cause it to exclude some attachments?&#60;/p&#62;
&#60;p&#62;Of course, I'd prefer a query that zeroed in on the specific attachment.  Is there a WordPress function I can call to get the attachment I want based on ID or post_name?  That would clearly be more performant than what I'm doing.  I could go straight to SQL, but I'd prefer not to.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
&#60;strong&#62;David&#60;/strong&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>dcjob on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1282755</link>
<pubDate>Mon, 16 Nov 2009 07:48:11 +0000</pubDate>
<dc:creator>dcjob</dc:creator>
<guid isPermaLink="false">1282755@http://wordpress.org/support/</guid>
<description>&#60;p&#62;How to change the post_status by default? I want the post_status will be &#34;any&#34; when a user adds a file into Media. Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>elektrowolf on "Get EXIF shutter speed as fraction"</title>
<link>http://wordpress.org/support/topic/332036#post-1282306</link>
<pubDate>Sun, 15 Nov 2009 19:44:36 +0000</pubDate>
<dc:creator>elektrowolf</dc:creator>
<guid isPermaLink="false">1282306@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Solved it!&#60;br /&#62;
I changed line 289 of wp-admin/includes/image.php to&#60;br /&#62;
&#60;code&#62;$meta[&#38;#39;shutter_speed&#38;#39;] = $exif[&#38;#39;ExposureTime&#38;#39;];&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>elektrowolf on "Get EXIF shutter speed as fraction"</title>
<link>http://wordpress.org/support/topic/332036#post-1282217</link>
<pubDate>Sun, 15 Nov 2009 17:32:56 +0000</pubDate>
<dc:creator>elektrowolf</dc:creator>
<guid isPermaLink="false">1282217@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hello!&#60;/p&#62;
&#60;p&#62;I extract the metadata from an attachment with the &#60;code&#62;wp_get_attachment_metadata&#60;/code&#62; function. This also includes the shutter speed, which is automatically converted to a float by WordPress. So I get values like this: 0,016666666666667. How can I convert this back into a fraction?&#60;/p&#62;
&#60;p&#62;Thank You,&#60;br /&#62;
Elektrowolf
&#60;/p&#62;</description>
</item>
<item>
<title>incredibledad on "Tweaking the dp_attachment function"</title>
<link>http://wordpress.org/support/topic/331276#post-1281842</link>
<pubDate>Sun, 15 Nov 2009 04:12:40 +0000</pubDate>
<dc:creator>incredibledad</dc:creator>
<guid isPermaLink="false">1281842@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Never mind, I've just solved the issue.&#60;/p&#62;
&#60;p&#62;ID
&#60;/p&#62;</description>
</item>
<item>
<title>incredibledad on "Tweaking the dp_attachment function"</title>
<link>http://wordpress.org/support/topic/331276#post-1281822</link>
<pubDate>Sun, 15 Nov 2009 02:53:35 +0000</pubDate>
<dc:creator>incredibledad</dc:creator>
<guid isPermaLink="false">1281822@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Anyone know how to code this function to make it work like I need it to?&#60;/p&#62;
&#60;p&#62;Any help would be much appreciated.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;ID
&#60;/p&#62;</description>
</item>
<item>
<title>incredibledad on "Tweaking the dp_attachment function"</title>
<link>http://wordpress.org/support/topic/331276#post-1280915</link>
<pubDate>Sat, 14 Nov 2009 02:36:55 +0000</pubDate>
<dc:creator>incredibledad</dc:creator>
<guid isPermaLink="false">1280915@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Help anyone please?&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;/p&#62;
&#60;p&#62;ID
&#60;/p&#62;</description>
</item>
<item>
<title>miqrogroove on "Detach &#38; Re-Attach Media Attachment Images from Posts"</title>
<link>http://wordpress.org/support/topic/294322#post-1280638</link>
<pubDate>Fri, 13 Nov 2009 21:44:54 +0000</pubDate>
<dc:creator>miqrogroove</dc:creator>
<guid isPermaLink="false">1280638@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://core.trac.wordpress.org/ticket/6820&#34; rel=&#34;nofollow&#34;&#62;http://core.trac.wordpress.org/ticket/6820&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>incredibledad on "Tweaking the dp_attachment function"</title>
<link>http://wordpress.org/support/topic/331276#post-1279673</link>
<pubDate>Fri, 13 Nov 2009 04:10:17 +0000</pubDate>
<dc:creator>incredibledad</dc:creator>
<guid isPermaLink="false">1279673@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Help please!&#60;/p&#62;
&#60;p&#62;On my blog, &#60;a href=&#34;http://www.incredibledad.com&#34; rel=&#34;nofollow&#34;&#62;http://www.incredibledad.com&#60;/a&#62;, the theme I'm using has the following code to get thumbnail images for summary of posts in the middle of the home page.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;# Displays post image attachment (sizes: thumbnail, medium, full)
function dp_attachment_image($postid=0, $size=&#38;#39;thumbnail&#38;#39;, $attributes=&#38;#39;&#38;#39;) {
	if ($postid&#38;lt;1) $postid = get_the_ID();
	if ($images = get_children(array(
		&#38;#39;post_parent&#38;#39; =&#38;gt; $postid,
		&#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
		&#38;#39;numberposts&#38;#39; =&#38;gt; 1,
		&#38;#39;post_mime_type&#38;#39; =&#38;gt; &#38;#39;image&#38;#39;,)))
		foreach($images as $image) {
			$attachment=wp_get_attachment_image_src($image-&#38;gt;ID, $size);
			?&#38;gt;&#38;lt;img src=&#38;quot;&#38;lt;?php echo $attachment[0]; ?&#38;gt;&#38;quot; &#38;lt;?php echo $attributes; ?&#38;gt; /&#38;gt;&#38;lt;?php
		}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Unfortunately, instead of picking up the first image in the post, it's picking up the second image in the post (unless the first image is the only image).  &#60;/p&#62;
&#60;p&#62;2 questions please:&#60;/p&#62;
&#60;p&#62;1) Is there a way I can force it to always pick up the first image?&#60;br /&#62;
2) Is there a way to perhaps use a custom field to force an image?&#60;/p&#62;
&#60;p&#62;Many thanks in advance!&#60;/p&#62;
&#60;p&#62;ID
&#60;/p&#62;</description>
</item>
<item>
<title>t31os_ on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1279627</link>
<pubDate>Fri, 13 Nov 2009 03:08:22 +0000</pubDate>
<dc:creator>t31os_</dc:creator>
<guid isPermaLink="false">1279627@http://wordpress.org/support/</guid>
<description>&#60;p&#62;In order to query for attachments you'd need to set post_status to inherit or any... (using &#34;any&#34;, drafts etc.. will show up)..
&#60;/p&#62;</description>
</item>
<item>
<title>dcjob on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1279531</link>
<pubDate>Fri, 13 Nov 2009 00:55:27 +0000</pubDate>
<dc:creator>dcjob</dc:creator>
<guid isPermaLink="false">1279531@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I tried &#34;search-everything&#34;, it does not work for search the description of the files in Media. I think it need to hack the codes of WP, make the searching include not only post_type=&#34;page&#34; and &#34;post&#34;, but also &#34;attachment&#34;. Who knows how to do it? Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>esmi on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1278909</link>
<pubDate>Thu, 12 Nov 2009 16:49:04 +0000</pubDate>
<dc:creator>esmi</dc:creator>
<guid isPermaLink="false">1278909@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/search-everything/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/search-everything/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>dcjob on "email to post, with attachment and Chinese problem"</title>
<link>http://wordpress.org/support/topic/330947#post-1278516</link>
<pubDate>Thu, 12 Nov 2009 08:25:51 +0000</pubDate>
<dc:creator>dcjob</dc:creator>
<guid isPermaLink="false">1278516@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Any solutions for email to post with attachment now?&#60;/p&#62;
&#60;p&#62;And I tried to send a Chinese email with UTF8 coding, but with wpmail, the Chinese cannot be shown. (My setting is UTF8 for MySQL, wordpress installation).
&#60;/p&#62;</description>
</item>
<item>
<title>miqrogroove on "Detach &#38; Re-Attach Media Attachment Images from Posts"</title>
<link>http://wordpress.org/support/topic/294322#post-1278501</link>
<pubDate>Thu, 12 Nov 2009 08:00:48 +0000</pubDate>
<dc:creator>miqrogroove</dc:creator>
<guid isPermaLink="false">1278501@http://wordpress.org/support/</guid>
<description>&#60;p&#62;BUMP!!
&#60;/p&#62;</description>
</item>
<item>
<title>dcjob on "How to make the search function include post_type = "attachment"?"</title>
<link>http://wordpress.org/support/topic/330937#post-1278486</link>
<pubDate>Thu, 12 Nov 2009 07:20:42 +0000</pubDate>
<dc:creator>dcjob</dc:creator>
<guid isPermaLink="false">1278486@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I uploaded some attachments with title and description. How to make the search function on front page to search these attachments?
&#60;/p&#62;</description>
</item>
<item>
<title>bill127300 on "Cannot link directly to PDF file in media library, only to post"</title>
<link>http://wordpress.org/support/topic/219507#post-1272746</link>
<pubDate>Fri, 06 Nov 2009 20:42:53 +0000</pubDate>
<dc:creator>bill127300</dc:creator>
<guid isPermaLink="false">1272746@http://wordpress.org/support/</guid>
<description>&#60;p&#62;What post? I thought we were talking about static home pages in this thread?
&#60;/p&#62;</description>
</item>
<item>
<title>Ziyphr on "Image sizes lost"</title>
<link>http://wordpress.org/support/topic/290227#post-1270875</link>
<pubDate>Thu, 05 Nov 2009 13:31:02 +0000</pubDate>
<dc:creator>Ziyphr</dc:creator>
<guid isPermaLink="false">1270875@http://wordpress.org/support/</guid>
<description>&#60;p&#62;When trying to view/insert older images I noticed the thumbnails weren't showing up in the admin area, and the file path it was inserting was the local one.&#60;/p&#62;
&#60;p&#62;I ran this query on the database to fix it:&#60;/p&#62;
&#60;p&#62;UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,'/your/local/path/','') WHERE meta_key = '_wp_attached_file'&#60;/p&#62;
&#60;p&#62;Replace 'your/local/path/' with whatever is coming up in your database (see original post).&#60;/p&#62;
&#60;p&#62;I'm unsure if the &#34;_wp_attachment_metadata&#34; field value also needs amending. For me I've not run into a problem yet.
&#60;/p&#62;</description>
</item>
<item>
<title>guanabana on "Error saving media attachment missing temporary file while uploading an image"</title>
<link>http://wordpress.org/support/topic/327364#post-1269868</link>
<pubDate>Wed, 04 Nov 2009 17:15:41 +0000</pubDate>
<dc:creator>guanabana</dc:creator>
<guid isPermaLink="false">1269868@http://wordpress.org/support/</guid>
<description>&#60;p&#62;SOLVED!!&#60;br /&#62;
you need to have outside the file web (were yuo have all you wordpress) a tmp file with permiitions 777. and also everything I did on the post.... My answer go resolver at &#60;a href=&#34;http://www.homocreativus.es&#34; rel=&#34;nofollow&#34;&#62;http://www.homocreativus.es&#60;/a&#62; this guys are really good at wordpress and online marketing. Hope this works for the rest.
&#60;/p&#62;</description>
</item>
<item>
<title>Xamataca on "Detach &#38; Re-Attach Media Attachment Images from Posts"</title>
<link>http://wordpress.org/support/topic/294322#post-1269421</link>
<pubDate>Wed, 04 Nov 2009 11:05:29 +0000</pubDate>
<dc:creator>Xamataca</dc:creator>
<guid isPermaLink="false">1269421@http://wordpress.org/support/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;Oh as well, it would be nice if we could assign/attach one image to multiple posts
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;This would be awesome, think of a multilingual site (you have duplicated post in each language and you can attach the same image to both).
&#60;/p&#62;</description>
</item>
<item>
<title>guanabana on "Error saving media attachment missing temporary file while uploading an image"</title>
<link>http://wordpress.org/support/topic/327364#post-1268147</link>
<pubDate>Tue, 03 Nov 2009 13:55:43 +0000</pubDate>
<dc:creator>guanabana</dc:creator>
<guid isPermaLink="false">1268147@http://wordpress.org/support/</guid>
<description>&#60;p&#62;uffff nobody has a real answer!!!! I´ve been like this for a week searching in every forum and NOTHING can arrange this problem.... PLEASE HELP!!!
&#60;/p&#62;</description>
</item>
<item>
<title>xgmidicentral on "Error saving media attachment missing temporary file while uploading an image"</title>
<link>http://wordpress.org/support/topic/327364#post-1267412</link>
<pubDate>Mon, 02 Nov 2009 19:55:24 +0000</pubDate>
<dc:creator>xgmidicentral</dc:creator>
<guid isPermaLink="false">1267412@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've got the same problem after upgrading wordpress 2.8.4 to the latest version. First I made a backup of the MySQL database files, than I upload the new files manually by WS_FTP Pro, and finally I did a fresh installation.&#60;/p&#62;
&#60;p&#62;I can upload every file, except *.rar files... In version 2.8.4 everything works fine. Now I get the same error when uploading *.rar files: error saving media attachment. &#60;/p&#62;
&#60;p&#62;..if it works don't fix it...
&#60;/p&#62;</description>
</item>
<item>
<title>guanabana on "Error saving media attachment missing temporary file while uploading an image"</title>
<link>http://wordpress.org/support/topic/327364#post-1267019</link>
<pubDate>Mon, 02 Nov 2009 13:42:16 +0000</pubDate>
<dc:creator>guanabana</dc:creator>
<guid isPermaLink="false">1267019@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hello everyone,&#60;br /&#62;
I am having trouble (as many others) uploading an image to my wordpress. I have tried reinstalling all the wp files, changing the permits to 777 on the upload file and on the content. I keep having the error:&#60;br /&#62;
Error saving media attachment and missing temporary file while uploading an image&#60;/p&#62;
&#60;p&#62;I cant find the answer in all the posts (I have read them all) and tried every possible solution in the posts and nothing happens.... ¡please help!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
