Restrict role to view own media

You can restrict users to seeing only their own uploaded media with this piece of code: <?php /* Plugin Name: Manage Your Media Only Version: 0.1 */ //Manage Your Media Only function mymo_parse_query_useronly( $wp_query ) { if ( strpos( $_SERVER[ ‘REQUEST_URI’ ], ‘/wp-admin/upload.php’ ) !== false ) { if ( !current_user_can( ‘level_5’ ) ) { … Read more

Original image not saving?

The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail(): the_post_thumbnail(); // without parameter -> ‘post-thumbnail’ the_post_thumbnail( ‘thumbnail’ ); … Read more

Uploaded images not displaying in network site

Looks like I needed <rule name=”WordPress Rule 1″ stopProcessing=”true”> <match url=”^index\.php$” ignoreCase=”false” /> <action type=”None” /> </rule> <rule name=”WordPress Rule 2″ stopProcessing=”true”> <match url=”^([_0-9a-zA-Z-]+/)?files/(.+)” ignoreCase=”false” /> <action type=”Rewrite” url=”wp-includes/ms-files.php?file={R:2}” appendQueryString=”false” /> </rule> Also here’s a bit more information I was able to find. http://wordpress.org/support/topic/images-files-not-displaying

How to: wordpress job listing and candidates details

You say that the listing is a custom post type so each job listing has a post ID so you can just pass that to your uploadcv.php in your Apply Now Button : <a href=”https://wordpress.stackexchange.com/questions/22457/.uploadcv.php?listing_id=<?php echo $post->ID; ?>”>Apply Now</a> and then retrieve that in your uploadcv.php : $listing_ID = (int)$_GET[‘listing_id’]; Now as far as saving … Read more

Set Maximum Width for an uploaded image

Full size images are unmodified by default as it literally is the full size image. You could ensure the photo is a suitable size prior to uploading or restructure your theme so that full size images are not linked and are perhaps replaced by large images which can have their size set in WP Admin.