post__not_in
only takes arrays – so it should such, even if you are only passing single value. Simply pass array($post->ID)
.
Related Posts:
- How to fork a plugin?
- Where to store PHP files created by plugin / themes
- WordPress 4.5 deprecated get_currentuserinfo()
- Single Responsibility Principle and WP Classes
- How to control output of custom post type without modifying theme?
- Admin config screen without menu
- What is the added “complexity” of custom tables?
- Displaying search results in the widget itself?
- How to Structure a New Role/Capability Scheme?
- How to create Image gallery Metabox in wordpress [closed]
- How to exclude content (and other returned values) from WP_query()?
- Why does preg_replace_callback never fire in this function?
- WordPress 2.8 Widget API is suitable for Worpress 3.1.4 plugins development?
- WordPress select dropdown list in widget
- Call to undefined function get_blog_option()
- How to duplicate a curl XML request using HTTP API?
- Unable to get content from $post on first publish
- Plugin admin page meta_box toggle and order state not saving
- Broken markup when using the_excerpt() in a widget?
- Best Practices for Creating and Handling Forms with Plugins?
- Is there a better way to implement responsive images than what WordPress uses by default?
- Gutenberg Block add element in the Editor inside InnerBlocks after div – editor-block-list
- How to add pages to custom menus on the fly [duplicate]
- How can I add a CSS rule to edit.php?
- How do you render_callback for register_block_type to a method in another class?
- Get the password key when using the wp_new_user_notification_email filter
- WordPress API have Plugin Anti-piracy feature?
- Use WP_Theme::scandir function to scan a plugin directory. Is there a way?
- How to add settings subpage from a plugin to a settings page created in theme?
- Plugin options not being saved or created
- Customizer: widget-synced triggers twice
- how query string in wordpress receive the value other than post and page [duplicate]
- Plugin Repo: Why do some plugins get version charts while others don’t?
- maintaing consistent layout wordpress dashboard
- Is there an event or an other method that tells me the preview is loaded?
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Admin Plugin POST to another file within the plugin
- How to stop activation addon if the main plugin is not activated
- How would you compose a complex plugin with lots of routes and functions? [closed]
- Settings API with arrays example
- Show error, when selecting image in WordPress media uploader if params mismatch
- add_rewrite_rule behaving strangely
- Problem with context in multisite – getting main site data in every blog (get_pages())
- What plugin development paradigm differences have occurred between version 3.5 and now?
- change add to cart button link [closed]
- How do I change the image from the default mysteryman in the WP Profile page
- Error: Call to a member function get_error_code() on a non-object
- Using Product variations as product addons
- WordPress: How to rename the main php plugin base file?
- Filter for admin (back end) ‘reply to’ comment
- How to get custom post_author?
- Change author permalink to external URL
- Is there any way to hide page from dashboard (all pages list) OR navbar from plugin function?
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Custom Settings Plugin Save foreach checkboxes
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- wordpress full site editing problem when extending core blocks
- How to check if `comment_meta` exists before inserting the comment?
- Showing results from json-string in WordPress search results page
- Pass custom props to
- Add default custom taxonomy to plugin activation
- How to revive (or take over) a plugin?
- Make visible page only in the trash
- Reading plugin settings in esnext wordpress block
- Plugin frontend page design irrespective of the theme used
- WP_Fatal_Error_Handler OR WP_Error OR try/catch
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Woocommerce product not appearing in category list page when created programatically [closed]
- add_meta_box does not display meta box in Admin
- implementing socket.io with wordpress
- List Table action argument not cleared
- How to store in the database directly the translation?
- How to affect front page by plugin
- What is the “best” way to update a theme via a plugin?
- Is there a an option to modify the post content directly on the browser instead of having it reflected on browser by modifying in the database?
- Acessing WP functions in form submission handler
- WordPress permalink setting
- Custom theme and plugin updating
- Error when trying to save custom post type settings (ERROR: options page not found)
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- Dynamic banner for use on external sites
- What method should I use to store my plugin data (multi level menus with options on each item)
- problem with blank page
- Error on using __FILE__ for add_menu_page() Function
- Getting error of unexpected output during activation
- Use custom clean URLs for a plug in
- Practical Solutions to HTML5 Video on WordPress
- An adiitional function fires on my AJAX submit
- Projectmanager Internal Link Code Location
- Select options not reloading after form submit
- How to add something after a function
- Plugin SVN folder structure
- Is the only way to add taxonomy terms via an admin panel?
- how many rupee or dollar charge to client to make theme [closed]
- how to catch a data from a array in WordPress
- get the queried_object of an url
- External api call using wordpress
- Set link dialog to open in blank by default
- plugabble wp_authenticate function not works from wp-login.php
- How to get recent one post from each category on home page?