The problem was here:
<input type="file" id="_themename-advert-create-image" name="_themename-advert-create-image" />
It should be:
<input type="file" id="_themename-advert-create-image" name="_themename-advert-create-image[]" />
Still can’t understand why I should add [] in my name, but now everything is working.
Related Posts:
- Should Plugin Folders Include a Blank index.php File?
- Where to store PHP files created by plugin / themes
- How to post data to same page in wordpress
- Include third party Javascript library which is not included in WordPress
- Is there widely accepted phpDoc syntax for documenting which hook calls a function?
- WP 3.3 Tooltips API?
- How do I Make a Theme “plugin-ready”?
- Authoritative answer on which boots first – Plugins or Themes?
- How to Add Font Awesome Icons to WordPress Menus?
- How to Add a .js file Only in one specific Page Dynamically to Head
- Show a user their recently viewed posts
- How to Use WordPress Color Picker API in Custom Post Type Metabox
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- How to create custom home page via plugin?
- How to debug WordPress correctly?
- Custom user profile, registration, login page with theme
- Featured Image not showing in admin
- How to Display Custom Post Type’s Gallery (images ) in Through WP_Query
- What is better way to use Bootstrap inside admin panel?
- Whats the difference between blog_info(‘stylesheet_url’) difference get_stylesheet_uri()
- What’s the better way to add an inline script?
- What for the tables ending with the meta used in database of wordpress?
- How to check if a stylesheet is already loaded?
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- What allows a template file from plugin to be copied in child theme and overridden?
- How to avoid loading same script twice?
- Can I individually style items in the backend widget list?
- WordPress security issue to output data from user input from theme option form
- WordPress add_admin_page not working even parameters are correct?
- Customizer: widget-synced triggers twice
- Change the ‘published on’ text?
- Is there some way to provide the user a list of existing content in a CPT
- Change the look and feel of admin pages
- Extending theme PHP class in plugin
- How to access noticeOperations from withNotices
- How to get boolean value from register_meta properly?
- what is the difference between these phares?
- What is the proper method of using global $post?
- How to export post meta with images in wordpress
- Password field is empty when using wp_signon();
- How to change title tag at page after loaded post?
- Strange Situation When Try To Retrieve Github Gist Using wp_remote_get
- How to hide or rename “X” and “x-child” references in website source?
- WordPress custom taxonomy check box to dropdown
- Widget HTML Display Problem
- Plugin is not generating title tags on any pages or posts
- Is it necessary to do validation again when retrieving data from database?
- Update Data parameter of a wp_localize_script() call
- get_the_tags with separator control?
- How to only load css for used blocks on frontend
- Add child pages to submenu automatically
- Why in this archive page that call query_posts() function show only the last 10 posts?
- my own SVN for a plugin/theme
- Why enqueue styles on hook?
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Why would you use esc_attr() on internal functions?
- Invalid hook call on save, not edit when using swiper slider
- Proper way to use useSelect
- How to find where an object first instantiatiation
- Full documentation about $args for register_rest_route?
- modify show UI of a registered taxonomy
- Using function from enqueued .js file in theme in plugin?
- How to get terms for taxonomy
- How to remove/replace current page template?
- WordPress dynamic widget by location?
- WordPress Page Reload Takes forever during theme development
- Adjust query on single
- Using password protection to load different page elements?
- Anyone using unzip_file successfully? It uploads the zip but doesn’t extract it!
- WP_Query order posts by category
- WordPress Favicon not Working For Images/Videos/PDFs
- How do I add filter with woocommerce categories?
- Need Help to make a logic for editing posts in Frontend
- How can we stop showing short code in create or edit post section
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- How can I measure CPU and RAM used by my theme or plugin
- set a custom post type to a taxonomy term programmatically in metabox
- My enqueue admin style function doesn’t work because of ?=ver
- Determine if the current page, is being edited
- Can i prevent the effect of the_title filter on the dashboard’s posts/pages titles?
- How to embed or integrated a custom WordPress Widget into the theme?
- Looping single post in a theme
- To remove rendering of menus and header, plugin or theme?
- WordPress permalink setting
- Custom theme and plugin updating
- How can I add recent posts to menu like mashable
- Is there a general way to get a themes primary colour?
- How to Register/Link to .js Files in WordPress Dynamicaly in Header.php
- grouping my widgets wordpress
- If I want to create new taxonomies (e.g. Project / Documents / Etc…) is it better to create them in the theme’s functions.php or within a plugin? [duplicate]
- How to add something after a function
- Best Way to Inventory the Media Library of a 200+ Multisite Installation?
- Loading jQuery library from WordPress admin
- Using tag or inline style attribute?
- how to insert content into wp_head after loop_end
- how many rupee or dollar charge to client to make theme [closed]
- how to catch a data from a array in WordPress
- How react js and other Javascript Technologies works on WordPress plugin?
- Remove Gutenberg Buttons Block
- User set default settings for a Block in Site Editor