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
- Customizing subject in comment notification e-mails
- if plugin is active? check if plugin is enabled or not?
- WP showing “warning: call_user_func_array()”, What to do?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Adding Custom Fields for Img in Posts
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Shortcode display outside the div
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Thumb rating for wordpress – top user
- shortcode doesn’t work
- How can i change an image’s author?
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Missing argument 3 for wp_register_sidebar_widget()
- Shortcode button dosent work for all posts. Work for first post only
- Accessing post’s meta data based on user’s click of a post
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Edit Yoast SEO breadcrumbs output [closed]
- How to put JQuery/Ajax inside shortcode?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- WordPress function not being called from jQuery method
- Override Plugin Script Fucnction in WordPress
- creating html reusable blocks via shortcodes
- Replacing a plugin function with a custom renamed function doesn’t work
- Insert content of a post into another
- Conditional attributes and logic per product category
- Some code in shortcode function being ignored
- WordPress get_avatar function not correct working
- How to Create a shortcode to this php function
- Check if variable is set in filter
- JQuery prepend a function
- Why can’t I call a (member) function from within a foreach?
- Are there action hooks for comments?
- Custom shortcode for displaying user based on a role parameter
- wp_enqueue_scripts
- get specific value of a array | PHP
- Shortcode Attributes to Return different $_POST
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Plugin onclick button activate other plugin
- Is there a way to convert shortcodes to html content?
- Send email with list of active plugins upon activation/deactivation
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- Loop returns the current page’s permalink and guid instead of the post in the loop
- Echo out element to another page.
- Different registration form for different roles
- Elementor Pro display featured image on section -> style -> image using shortcode
- Woo-commerce Update price as a Bulk from My offline software export
- add_rewrite_rule to load different page, without changing URL in browser
- how to display recent post by category on home page
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Post source link plugin – small modification
- How do I use a plugin’s shortcode attribute value in another function?
- How to create algorithm for ordering posts in WordPress?
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- Block plugin update possibilities (but not by hiding notifications)
- Change custom rewrite rule when permalink is updated/changed
- Return function results within shortcode
- Configuring default woo commerce login with modal popup
- Soflyy WP All Import Custom File Download Issue
- Update (a function) post’s featured image as soon as $image_url changes
- Populate select option with JSON file
- Query Shortcode from a multisite to appear on a different site?
- How to echo a plugin’s function into a template?
- Trending Tags based on post views
- It possible to implement an adhoc php web application with wordpress?
- Contact Form 7: custom validation [closed]
- date function not correctly returning date
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission
- Creating Features List in WordPress Post
- WordPress: code structure
- PHP if url extension action=discussion condition use [closed]
- 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?
- 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
- WordPress Convert queries to slashes using function.php
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode