Remove attached media
Remove attached media
Remove attached media
Solved, thanks to this post by Mike Jolley (see ‘Passing data to the uploader script’).
Import of 200+ sermons
If you want to give the users some course material to download, you could simply “Add Media” or “Upload ZIP” into the “Course” content section. Also if you want only people who start a “Course” to have the course material then you could place the Course material files in the content of the “Unit” post … Read more
There’s no such “non-coding newbie”-bulk-thing for the process. You have to do that for each of the image, when you are uploading the image to the site and/or post/page. On the right panel of the media upload pane, change “Link To” to “Custom URL” and put the URL (whatever you like – internal or external) … Read more
You shouldn’t have to reload anything you will need to hook this fucntion into a hook so it’s actually run something like this should do it: do_action( ‘init’, ‘toolbox_setup’ ); http://codex.wordpress.org/Function_Reference/do_action
Adding filter: add_filter( ‘upload_dir’, ‘change_upload_dir’, 10, 1 ); Function content: function change_upload_dir($param) { // Check for REFER $actual_page = $_SERVER[‘HTTP_REFERER’]; parse_str( parse_url($actual_page, PHP_URL_QUERY), $query_array ); if ( strpos($actual_page, ‘plugin_name.php’) ) { $mydir=”/customdir”; $param[‘path’] = $param[‘basedir’] . $mydir; } return $param; } Hope this will help Other ideas, based not on HTTP_REFERER, are appreciated 🙂
Hmm… Try altering your query a little to: $args = array( ‘post_parent’ => $post_id, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’, ); $attachment = new WP_Query( $args ); $attachment = $attachment->posts; Alternatively, you could use the following: $attachments = get_children( array( ‘post_parent’ => $post_id, ‘post_status’ => … Read more
Used Duplicator to transfer a site. Now my media uploads aren’t working
the_post_thumbnail allows for size specificiations. So you would do: <?php the_post_thumbnail(‘medium’); ?> if you changed the image dimensions in the admin, you will need to go back and re-upload the images so they crop to the correct size that you set up If the issue is the dimensions of the image you are probably looking … Read more