<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; wordpress tip</title> <atom:link href="http://www.ghacks.net/tag/wordpress-tip/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 21:54:04 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Save Lots Of Server Storage In WordPress</title><link>http://www.ghacks.net/2010/11/08/save-lots-of-server-storage-in-wordpress/</link> <comments>http://www.ghacks.net/2010/11/08/save-lots-of-server-storage-in-wordpress/#comments</comments> <pubDate>Mon, 08 Nov 2010 17:30:46 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress images]]></category> <category><![CDATA[wordpress media]]></category> <category><![CDATA[wordpress tip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=36651</guid> <description><![CDATA[I have been working with WordPress for the last six years and it has been a pleasant ride for most of the time. WordPress offers a lot, considering that it is free to use and I occasionally discover something new. This time it is how to save lots of server storage space in WordPress. WordPress, [...]]]></description> <content:encoded><![CDATA[<p>I have been working with WordPress for the last six years and it has been a pleasant ride for most of the time. WordPress offers a lot, considering that it is free to use and I occasionally discover something new. This time it is how to save lots of server storage space in WordPress.</p><p>WordPress, as you may know, comes with capabilities to upload media, which in particular means images and photos. What many users do not know is that WordPress generates up to three additional resized images for each image uploaded. This depends on the size of the image.</p><p>WordPress generates a thumbnail image with a resolution of 150&#215;150, a medium sized image with a maximum resolution of 300&#215;300 pixels and a large image with a maximum resolution of 1024&#215;1024.</p><p>If the uploaded image is larger than 1024 in width or height, then all three image resolutions are generated. That&#8217;s a lot of additional storage space, considering that not all of those images are usually used in articles on the site.</p><p>If you have access to the server where WordPress is hosted, you can take a look at the wp-content/uploads/year/month directory to see that there are multiple resolutions available for each image that got uploaded in the past. Take a look at this screenshot for example.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2010/11/wordpress-images.jpg" alt="wordpress images" title="wordpress images" width="496" height="235" class="alignnone size-full wp-image-36654" /></p><p>If you look at the screenshot you notice that there are two and once even three copies of the original image on the server. In Ghack&#8217;s case, the 1024 resolution is not used at all, wasting a total of 438 Kilobytes in this example alone. And that&#8217;s only for one of the more than 9000 articles on this side. You can do the calculation but this seems like an awful lot of wasted storage space on the server.</p><p>So what can you do to reduce the number of copies that get generated during upload?</p><h3>WordPress Image Generation</h3><p>WordPress image generation is handled on the Settings > Media page in the WordPress admin interface.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2010/11/wordpress-media-settings-500x284.jpg" alt="wordpress media settings" title="wordpress media settings" width="500" height="284" class="alignnone size-medium wp-image-36655" /></p><p>If you visit the page you will notice three different image sizes that can be configured. These three image sizes are linked directly to the copies that get generated during media uploads.</p><p>Now for the tweak: Images will not be resized if you delete the size information in both the width and height fields. For example, if you only need a medium sized image with a maximum width and / or height of 500 then you can remove the resolutions from the thumbnail size and large size fields. If you do that, they will no longer be generated during media uploads. This reduces the number of files generated from a maximum of three to only one, which in turn means that a lot of space is saved on the server&#8217;s hard drive.</p><p>You need to assess your situation first before you make changes. Some WordPress themes make use of thumbnails and display them on the frontpage and individual pages of the blog. If that is the case the thumbnail generation needs to stay. It is usually still possible to remove either the medium or large size to reduce the storage space per uploaded image.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/11/08/save-lots-of-server-storage-in-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WordPress: Your attempt to edit this post has failed</title><link>http://www.ghacks.net/2009/02/02/wordpress-your-attempt-to-edit-this-post-has-failed/</link> <comments>http://www.ghacks.net/2009/02/02/wordpress-your-attempt-to-edit-this-post-has-failed/#comments</comments> <pubDate>Mon, 02 Feb 2009 20:45:37 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress autosave]]></category> <category><![CDATA[wordpress blog]]></category> <category><![CDATA[wordpress bug]]></category> <category><![CDATA[wordpress error]]></category> <category><![CDATA[wordpress tip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10296</guid> <description><![CDATA[There are usually two areas that can cause problems and errors in a WordPress blog. The first are plugins that produce incompatibilities or display errors while the second are problems after updates of the blog software itself. There have been some problematic messages occasionally when trying to publish posts lately. The error message Your attempt [...]]]></description> <content:encoded><![CDATA[<p>There are usually two areas that can cause problems and errors in a WordPress blog. The first are plugins that produce incompatibilities or display errors while the second are problems after updates of the blog software itself.</p><p>There have been some problematic messages occasionally when trying to publish posts lately. The error message Your attempt to edit this post [..] has failed appeared occasionally after upgrading to WordPress 2.7. WordPress was not able to publish the article which was bad enough but the underlying problem was that all work up to the point of the last auto save was lost as well.</p><p>This usually meant that the tags, categories and other last minute edits (like urls) were missing from the posts and had to be added again. The second edit and publishing always succeeded without difficulties.</p><p><span
id="more-10296"></span>The first thought was that this could have something to do with the automatic saves of posts before publishing. A quick research on the WordPress support forum seemed to confirm that.</p><p>The fix is apparently the following:</p><p>Locate the file post-new.php in the wp-admin folder of the WordPress installation. Find the following line in that file <code>wp_enqueue_script('autosave');</code> and replace it with <code>//wp_enqueue_script('autosave');</code>.</p><p>The // in front of the row make the entire row a comment which essentially means that the command will not be executed. This will practically disable auto save during post publishing meaning that you will hacve to click on the Save Draft button before you leave an unfinished post page.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/02/wordpress-your-attempt-to-edit-this-post-has-failed/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
