Change the image for a certain URL
Change the image for a certain URL
Change the image for a certain URL
From your question what i understood is u need to store media files to another custom location. if that is your doubt then this may help you.. In order to change the default media upload location, you need to edit the wp-config.php file. If you want upload directory to be wp-content/example then you will need … Read more
Ok… So after some more research I found: http://andrewapeterson.com/2012/08/fix-wordpress-media-library-and-attachments-broken-after-movingcloning-site/ which explains that you can’t just do a find and replace in a text editor and be good to go. Fortunately, I still had the original database, so I dropped all the tables in the tsi_ database and restored the original wp_ database. All my images … Read more
Ok, I reworked the whole thing because I was obviously printing out my info prior to where I should have. It now looks like this: //SHOW SCREEN IF OPTION CHECKED add_action( ‘admin_notices’, ‘sbah_show_current_screen’ ); function sbah_show_current_screen() { $screenoptions = get_option(‘sbah_options’); if(isset($screenoptions[‘sbah_view_screen’][0])) { $takenscreen = $screenoptions[‘sbah_view_screen’][0]; } if(isset($takenscreen)) { if( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) … Read more
Solved, thanks to this post by Mike Jolley (see ‘Passing data to the uploader script’).
Import of 200+ sermons
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
Victor, Maybe this is helping you. http://goo.gl/9sahyp Regards, Hugo
Failed to load resource at admin screen
Clicking on the image will display all of the information about it, including the file name, on the right.