Hot answers tagged

2

I mentioned in a comment how it's important to debug your code. Here's why: The images are added first. In the image adding section, you're running this line of code: $_FILES = array("moreimages" => $image); Then when you get to your routine that adds the files, you start with this: $files = $_FILES['morefiles']; Can you see what's wrong here? At ...


2

If you add this to functions.php, this will update the options as set. function custom_image_size() { // Set default values for the upload media box update_option('image_default_align', 'center' ); update_option('image_default_size', 'large' ); } add_action('after_setup_theme', 'custom_image_size'); You can update the options as you need.


1

That's the same media manager. The first image is what you see if you try to put a gallery into your page or post. The second is what you will see if you add a Featured Image, where the gallery tab would not be relevant.


1

If you are not very familiar and want a plugin that can do all that for you using drag and drop, try WP-TYPES and their CRED plugin. Just don't mind their support, it's really frustrating.


1

As per the given url http....url.../author/name?MediaTag=tag1, below code may helpful... if(isset($_GET['MediaTag'])) //It will check the value of MediaTag (from address bar after ?) { $tag1 = $_GET['MediaTag']; //Assigning value of MediaTag to the variable if($tag1) //Checking if variable have some value or not { ...


1

Well I was privileged enough to get the tumbleweed badge for this question. But I found the answer. Easy enough. Custom Upload Dir Plugin. Perfect for the job. Well, almost. With a little tweaking.


1

I highly recommend updating all of your URLS. This can be done either with a word press plugin such as Velet Blues Update URLS Or via your SQL database: UPDATE wp_posts set post_content=REPLACE(post_content, 'www.live.com/', 'www.test.com/'); note* images are uploadeded as posts in your database.* ( wp_posts table with a post_type of "attachment". )



Only top voted, non community-wiki answers of a minimum length are eligible