could not upload image in media library
open file wp_config.php and add code define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’); via ftp in the folder /wp-content, create a new catalog /temp/
open file wp_config.php and add code define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’); via ftp in the folder /wp-content, create a new catalog /temp/
Go to Setting –> Reading Setting Change front page display as static page Select the static page Save the page
I think this will be helpful for you. It has describe everything step by step and there are part 1 & 3 of that tutorial series. Follow them as well. Creating a WordPress Plugin Part 2: Uploading Media and using Web Services
If you edited the image (crop or rotate) after inserting it into the post and then changed the image sizes but you don’t update the post that the image appears in to use the new sizes, you can find yourself in this situation. This is intentional behavior. It keeps WordPress from displaying an image in … Read more
This is a good idea. Thanks for suggesting it—going to use it. 🙂 You can add a column to the Media Library that outputs the paths. This will spit them all out. You could of course filter it to only show the sizes you actually want. Put in functions.php or similar. // Adds a “Sizes” … Read more
The default value that you set on the image add_setting will only be applyed if there is a any option called ‘reset to default’ on the image control. This argument will not output any default value to the page. The second argument of the function get_option( ‘option_name’, $default ). The $default parameter will not submit … Read more
WordPress generates more than 3 thumbnails or image sub sizes because there are actually more than 3 standard/core image sizes in WordPress. Moreover, themes and plugins can also register custom image sizes. 🙂 The 6+1 standard/core image sizes Default (4): Thumbnail, Medium, Large and Medium Large (medium_large), but only the first three that you can … Read more
@Jan: The cache images plugin: http://blog.milandinic.com/wordpress/plugins/cache-images/ helped me with this, it does not on demand replace the links but rather goes through all links but basically does the same. One note on this: when I ran it on a small blog it worked pretty well. On another blog (http://edward.de.leau.net) it did a lot of posts … Read more
Gallery “order” is saved in the gallery shortcode itself. Take a look at the code for the gallery using the “text” editor, then drag the images around, and look at the raw code again. To make this work, you will have to parse the post content for the gallery shortcode and extract its data. Something … Read more
They achieve this by using CSS Media Queries . Here are the specific ones controlling the gallery width. @media(max-width: 720px){ .gallery-item{ max-width: 50%; } } @media(max-width: 480px){ .gallery-item{ max-width: 100%; } } Add those into your style.css and see if they work.