Use wp_handle_upload() to handle uploads yourself, without creating attachments or resizing.
The media_handle_upload() function actually creates an attachment post, and the resizing process happens when wp_generate_attachment_metadata gets called. If you don’t call that, then no resizing occurs.
Related Posts:
- How to query details of images in gallery that is attached to a post
- How do register_sidebar() and get_sidebar() work together?
- Why isn’t is_home() working correctly?
- wp_nav_menu() custom container and container_id
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- Can You Export Theme Settings From WordPress Multisite?
- Automatic image renaming based on title
- Automatically wrap post image in div
- Get the post attached to a image attachment
- Create a customizable child theme
- Is it ok to not a have child theme and just create a theme from scratch?
- sanitize attachment filename
- Importing media medium setting image gallery / image attachments
- WP Northwind for Theme Development?
- Add more then one site logo – custom-logo theme support
- How to add “Read More…” link in twentytwenty
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How can I defer these JS files?
- Custom attachments styling in post view
- How to create left and right menu with logo center in a custom theme?
- How to add custom page attributes in WordPress?
- How do I change the markup only of a built-in widget?
- REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
- problem in uploading attachment to custom directory
- Blog page problems
- Extend WordPress Core Classes in OOP Theme?
- User bar above logotipo?
- Attach File Funcion for Common people
- Transferring theme and imported post attachments
- how or where wordress collect unlogged user session
- How to create social Share Buttons Without Plugin
- Bootstrap slider not working
- Trying to customise 2011 Child Theme Background Colour
- Highly stylized pages
- Lightbox not showing image caption
- WordPress core jquery version file not loaded?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Post thats in Two Categories, only want to display name for one
- why jquery is not loading in wordpress page?
- Is it possible to show related posts on WordPress attachment pages?
- Modifying posts based on category in TwentyTwentyTwo theme
- Why have on every line
- Best Practices for Regression Testing WordPress Websites?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to create a page that isn’t accessible via menus?
- How to Save Different Usermeta Fields According to User Role?
- wp_get_archives for a specific category?
- Which functions in theme or plugin load first
- Using WordPress functions on other sites
- Custom image size not selectable in uploader
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- Upgrading a custom theme through the Dashboard
- How to merge all my pages into one, while keeping a menu bar?
- Outputting Page Content in Two Places
- Post Thumbnail help
- Hide custom field if empty
- Admin Panel – Custom Menu Sub-Item LINK
- Add custom user profile field to default WordPress MultiSite registration form
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- How to customize core admin pages within a theme?
- URLs and navigation in custom themes
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Load MediaPlayerElement after Infinity Scroll loads more posts
- How do I remove a customiser option from a parent theme in a child theme?
- Your thoughts on the interaction with one custom database table from WP?
- Is there a way to override require_once of the main theme on the child theme?
- Make RSS feed only accesible by Mailchimp
- WP custom routing does not work
- Best Practice for Displaying Categorized Posts on Front Page
- I tried to change my URL and ended up losing access to my site? I went into general settings and changed both WordPress URL and Site URL
- How to create “custom page types” with different custom fields in them?
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Grabbing a data from wp_usermeta
- wordpress shortcode not working
- Is there a hack for using is_page() within the function.php file?
- How To Style Links in Content Area With Tag Automatically?
- Meta Tags by Meta Box
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Get whole linked with wp_list_pages
- Force WordPress to load a specific template
- Echo the Last Child Taxonomy only (not parents)?
- Troubles about insering a POST with a SQL query, post_status
- How to activate flash cards
- Embed Latest Track (Dynamic Updating) SoundCloud
- Gender based user avatar
- Javascript Tooltip not fully working on my wordpress page
- bulk generate wp taxonomy tags from wp title with self php script
- Build custom pdf from users choices
- Show Header When Not In Iframe
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Confused about customising widgets
- Changes in comments.php in the child theme does not show up on the site
- how to modify request to get_template_part()?
- Getting Custom Field value in WP_Query
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Help needed renaming custom post
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?