Tag Info

New answers tagged

0

I'm guessing you'll need to fetch the post content and parse it using something like this as a guide (pasted code from above link for future reference). // Get the all post content in a variable $posttext = $post->post_content; $posttext1 = $post->post_content; // search for the src="" in the post content $regular_expression = '~src="[^"]*"~'; ...


1

I was able to answer this via help from a great plugin editor. This solution doesn't reorder the select box but instead forces it to only load the "Uploaded to this Post" media by default. I used some of the JS from this post to get the select box to change. I had some help from the great Sewpafly who develops Post Thumbnail Editor Plugin. he shared a ...


2

The only problem with the JS above that it toggles the select box to trigger the change after the page loads and after its already begun to download ALL MEDIA ITEMS. For my client on a slow T1 this locked things up as it downloaded both the ALL MEDIA TIMES and the UPLOADED TO THIS POST items together. I had some help from the great Sewpafly who develops ...


0

I too use have been using the Custom Upload Dir plugin that @sr83 mentioned to organise images and other upload files. It's a useful solution, although not as flexible as I would like. It does provide a really great range of placeholders to build the folder path dynamically - including %file_ext%, %post_id%, %author%, %postname%, %post_type%, %year%, ...


0

When calling add_filter( 'image_size_names_choose', 'custom_image_sizes_choose' ); use your investigative skills to see how it would be best to call an if(thisweretrue) add_filter( 'image_size_names_choose', 'custom_image_sizes_choose' ); since I don't know exactly what your specific situation is. I actually was able to use your solution for setting up the ...


3

You can try to use the attachment_submitbox_misc_actions filter to add more info to the box. Here is an example for the filesize part: add_action( 'attachment_submitbox_misc_actions', 'custom_fileinfo_wpse_98608' ); function custom_fileinfo_wpse_98608(){ global $post; $meta = wp_get_attachment_metadata( $post->ID ); $upload_dir = ...


0

Ok, I found the problem. It wasn't a Wordpress problem, but a server issue. I had to add the file extension .mp4 with MIME type video/mp4 in the MIME types of the IIS server. Here is the link I found with the steps to correct the issue: http://forums.asp.net/t/1470612.aspx/1 1) Select the site to configure in IIS, right click and select "Properties" 2) ...


0

However you can create plugin for that. From admin end, you can specify the folder path. From there videos can be loaded in your site. That's all. You have to write all video supported format.


0

I use the Custom Upload Dir plugin to organise images.


3

I found this plugin. It provides a pretty good example of how to integrate the new Media UI with the admin, and is very well documented: https://github.com/thomasgriffin/New-Media-Image-Uploader/ Maybe that can help you.



Top 50 recent answers are included