Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

uploads

Disable image attachment links

August 4, 2022August 3, 2022 by Magenaut

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it’s possible to do it manually when you add an image to a post but I want to disable this functionality by default.

Categories Q&A, Wordpress Tags attachments, images, links, uploads, wp-admin Leave a comment

Automatically wrap post image in div

August 4, 2022August 3, 2022 by Magenaut

In regards to image attachments inserted into a post, I would like to wrap the img tag inside a div tag for specific design purpose.

Categories Q&A, Wordpress Tags attachments, customization, images, uploads Leave a comment

How to generate thumbnails when needed only?

August 4, 2022August 3, 2022 by Magenaut

I have 1000 images.
How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its a waste of space and resources.

Categories Q&A, Wordpress Tags images, uploads Leave a comment

Upload Multiple Files With media_handle_upload

August 4, 2022August 3, 2022 by Magenaut

I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that:

Categories Q&A, Wordpress Tags code, codex, functions, media-library, uploads Leave a comment

Different upload directory based on post type in a theme

August 4, 2022August 3, 2022 by Magenaut

I have a lot of uploaded image files and image sizes. So it would be better to organize media files into folders based on post type. I have just read this tutorial, but as I can see it works with plugins. How to change this to use in a theme?
Thanks.

Categories Q&A, Wordpress Tags media-settings, uploads Leave a comment

Is it possible to reorganize the WordPress uploads directory?

August 4, 2022August 3, 2022 by Magenaut

I have a WordPress site where all uploads have been uploaded to /wp-content/uploads/*. Now that there are thousands of images, there is a performance hit, and I have been assigned to help remedy it.

Categories Q&A, Wordpress Tags uploads Leave a comment

Plupload Intergration in a meta-box?

August 3, 2022August 2, 2022 by Magenaut

I know that plupload is going to be the new upload engine for WordPress 3.3 but I was wondering if there is any documentation yet on how it integrates with WordPress.

Categories Q&A, Wordpress Tags plupload, uploads Leave a comment

How to disable generation of default image sizes for some custom post types?

August 3, 2022August 2, 2022 by Magenaut

I used custom post type, where ‘thumbnail’, ‘medium’ and ‘large’ sized not required. I need to disable this sizes and create function or plugin, where i can set, which image size is required for each custom post type.

Categories Q&A, Wordpress Tags custom-post-types, images, post-thumbnails, uploads Leave a comment

media_sideload_image generates blank?

August 3, 2022August 2, 2022 by Magenaut

I’m creating a custom post form that is supposed to take an external image and uploads it to the media library and attach it to that post. This should be possible by using media_sideload_image, but I’m getting a blank page instead of working correctly, no error either. My code:

Categories Q&A, Wordpress Tags attachments, post-thumbnails, uploads Leave a comment

How to add more upload directories?

August 3, 2022August 2, 2022 by Magenaut

I have two types of files in my WordPress Media Library, one is for pictures and attachments from posts, the other is for attachments from a custom post type.

Categories Q&A, Wordpress Tags uploads Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page12 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress