Upload iPhone video clips to blog via native WP app
Upload iPhone video clips to blog via native WP app
Upload iPhone video clips to blog via native WP app
I have added an image size <?php add_image_size( ‘test’, 300, 300, true ); ?> Uploaded an image of exactly 300 x 300px, Then got the image <?php wp_get_attachment_image_src( $id, array(300,300) );?> or <?php wp_get_attachment_image_src( $id, ‘test’ );?> Works both ways. Maybe you did not define the image size correctly in functions.php
It would seem your permissions and / or ownership on /usr/share/wordpress/ could be wrong. Try setting this directory to 777 and CHOWN the owner to Apache (on Ubuntu it runs as user www-data). If WordPress was unzipped/expanded in /usr/share/wordpress you would have a folder wp-content – and the /uploads folder should be created in there … Read more
Disable new WP3.5 Media Picker
How to edit attachment with media-upload.php?
You could hook into the action add_attachment and perform an SVN commit. add_action( ‘add_attachment’, ‘svn_commit_attachments’ ); function svn_commit_attachments( $attachment_ID ) { // collect data about the attachment, for example its path, the user and so on. shell_exec ( ‘$ svn commit -m “$user added file $filename.”‘ ) }
Not tested, but maybe you can just extend the $pagenow check? Instead of … if( ‘upload.php’ != $pagenow ) … try … if( ! in_array( $pagenow, array ( ‘upload.php’, ‘post-new.php’, ‘post.php’ ) ) ) That should cover the post editor screens too.
Use wp_delete_attachment <?php wp_delete_attachment( $attachment_id ); ?>
One step picture upload
You will need to ensure that your web server has symlinks enabled. For Apache2, this is Options FollowSymLinks. For Nginx, the option is disable_symlinks off;. If you are not using either of these, you may need to consult your servers documentation. If you are you using a web hosting provide, you can also see if … Read more