post__in
takes an array of post IDs. What you are passing is a string into an array
Try to change code a bit e.g.
// Check if href has a value before we continue to eliminate bugs
if ( !$value ['id_post'] )
return false;
$post_ids_array = explode(',', $value['id_post']);
$args = array(
'post__in' => $post_ids_array,
'orderby' => 'date',
'order' => 'DESC'
);
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Nested shortcode functions accessing variable
- How to call WordPress function other files
- What is @Action in WordPress?
- Add the_post_thumbnail_url to a shortcode in function.php
- Adding a Tag Parameter / Filter to My Shortcode
- How to get current cart values using WC_Shortcodes?
- adding dynamic/multiple slug values in ‘option_none_value’
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Posting code inside the post instead of in the template file using shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Elementor: Exclude product categories when using “Source: Current Query”
- How to create algorithm for ordering posts in WordPress?
- Submitting form to PHP
- Adding discount functionality to the cart
- Why is my shortcode not working?
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- working code, not working – Plugin Dev
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Block plugin update possibilities (but not by hiding notifications)
- post id or permalink auto-incrementing number and reset everyday
- How to pass multiple custom fields as shortcode’s parameters
- Change custom rewrite rule when permalink is updated/changed
- Is admin section completely customizable in terms of styling?
- Return function results within shortcode
- Configuring default woo commerce login with modal popup
- How to make the first letter of a post title uppercase, in a plugin?
- Compare Ajax Data Results
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Soflyy WP All Import Custom File Download Issue
- register_activation_hook doesn’t fire at all
- Update (a function) post’s featured image as soon as $image_url changes
- Migrating custom php we wrote from functions.php into a site-specific plugin
- Nested DIV’s across functions in PHP, do not seem to work
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- Populate select option with JSON file
- Query Shortcode from a multisite to appear on a different site?
- Every time I use wp_get_current_user() my plugin breaks
- How to echo a plugin’s function into a template?
- How to replace native comment_count with Comments Evolved aggregate count
- Trending Tags based on post views
- wordpress Shortocode running twice?
- Shortcode in a blog post, footer and related products stop working
- It possible to implement an adhoc php web application with wordpress?
- Create csv file in plugin
- Cannot access variables within a widget
- Is there any wordpress function to update a random post every 10 minutes?
- Calling an custom field from theme option at the frontend
- WordPress function to add text
- Saving an array to get_options
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- Metabox Data not saving
- How to Set Limit with WordPress Get Bookmarks Shortcode
- How to add a handler for a button in plugin?
- Contact Form 7: custom validation [closed]
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- date function not correctly returning date
- Doing action based on input from options menu
- Including a PHP file via a function that is part of a plugin?
- Showing author box on post detail page
- How to disable register and reset the password from WordPress admin panel?
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission
- Move related products after product summary? [closed]
- Creating Features List in WordPress Post
- How to tweak a plugin without preventing it from updating
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Woocommerce disable checkout on specific day
- Requires PHP version 5.3.0
- WordPress: code structure
- PHP if url extension action=discussion condition use [closed]
- Adding a script & php to functions.php
- PHP Creating a formula from mysql db values and db stored math operator
- cURL External API request displays content above other content on page
- Subtract Using GravityWP Count Plugin
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How to get URL param for pagination in shortcode?
- qTranslate‑X is not translating all shortcodes
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Option value not getting updated until page refresh in WordPress
- Make plugin admin page visible to other roles
- WordPress Convert queries to slashes using function.php
- How to change all the urls of the WordPress site?
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- I want to allow certain file types on dokan upload files
- Accessing Correct Database to Create REST API Endpoint
- stop resize button for wordpress media
- Mixed results with is_page() WordPress function, when using $this, or self
- Read page- or post-content across different builder-plugins
- Add 2 links in between the navigation using the Breadcrumb Navxt plugin hook
- CPU Overloading due to some hooks
- Woocommerce change image based on a single attribute
- How to get next day date of a specific day