You did not explain your question well so I am guessing quite a bit but I think you want something like this:
function post_ids_wpse() {
global $wp_query;
$ids = wp_list_pluck($wp_query->posts,'ID');
$scs="";
foreach ($ids as $id) {
$scs .= "[wp_value id='{$id}']";
}
echo do_shortcode($scs);
}
That is very crude. You should check that the various values are sane before trying to use them, for example.
The idea is to grab the main query object from the page and create shortcodes from the ID
s it contains.
Related Posts:
- Update all posts automatically when using post_meta
- Stop WordPress automatically adding tags to post content
- How to change the case of all post titles to “Title Case”
- WordPress removing tags?
- Dynamically add id to heading tags
- Confirmation box when submitting post for review
- Display Random Author with Details in Sidebar
- Ajax Load More Posts in Category Page
- Publish pending article from front end with a button?
- List latest posts in WP-Admin
- Getting the Next and Previous Posts Titles in the Sidebar?
- Search & Remove Specific Shortcode From All Posts
- Restrict users from editing post based on the age of the post
- Change slug with custom field
- Shortcode Not displayed at the Right Place [duplicate]
- How To Ignore a Filter On Applying Filter the Content In a Function
- Restrict access to post if it is currently being edited
- Getting an alphabetic post list with two letters onclick on letter
- Automatically added brs and paragraphs?
- Post X of Y in single.php / sidebar.php
- Create new category upon save based on post information
- which action to hook to in order to perform post-publish action
- Specific loop in Shortcode
- Strange switch_to_blog() issue
- POST from jQuery to PHP
- Search widget breaks when using multiple loops?
- How to add shortcode tags in single.php [closed]
- Display all posts under child sub category in sidebar on post page?
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to create shortcode to show the 2 latest posts
- Load posts into sidebar and paginate via ajax?
- $post object is null
- How to show post(excerpt) from specific category on wp page?
- Hide Post comments when displayed via WP_Query
- How to show video from specific category on sidebar?
- Advanced Custom Fields – Storing array value for further usage
- Function to show random posts from a category
- WordPress menu that shows all posts in a certain category like w3schools
- Styling images coming from another blog
- How can I hide the sidebar from a specific post?
- Remove Shortcode […] from Blog Preview
- str_replace the_title(); blues
- WP_Query is printing out only one post when posts_per_page is set to multiple
- Display a post by ID attribute with shortcode
- UberMenu list current user’s posts as menu items
- Accessing post->ID outside of the loop for listing child pages
- Sidebar links for different pages
- how to set beforsend option in wordpress ajax methods
- Show all posts in sidebar in single.php
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- Get latest posts from WordPress site without header, menu and sidebar
- Display post category in foreach loop with category link
- Post-ID in url differs from $post->ID
- do_shortcode within post query
- WordPress Custom Fields (Checkboxes with multiple values)
- How to display most popular posts from certain category in sidebar?
- Correcting the content width when sidebar is inactive?
- Add category attribute to custom recent post shortcode
- Shortcode for printing post titles
- Same sidebar in all posts as in the category
- How to use extract shortcode in loop?
- Using Post ID and Page ID in same function
- How to limit the number of results for all query_posts on mysite
- Show a Category Specific Info Box
- How to get all the terms of a post
- Get first comment link on the post itself
- Display only posts with comments
- User driven content problems
- How can i retrive the movies, trailers, news in a single page using search
- Change the default video URL in a post to shortcode format
- How can I create a menu items from meta box based on users input
- Older entries link within a category page
- How do I display a full post, not just an excerpt?
- Remove read more
- How do I display the next 3 posts in the sidebar?
- Insert new post for each user infinite loop error
- List direct children of page
- Unable to get posts with category on my page
- wordpress radio button on single post page
- How *not* to show the last post on the latest posts list
- Create post from form with image
- How do I add an article to specific page?
- Exclude a ‘portfolio’ custom category?
- Display a custom field rating system in the front end
- Echo author slug in post edit page
- WordPress Yoast SEO plugin Post Save/Update Issue
- If post has non-shortcode string
- Insert Shortcode exactly at the end of the content
- Adding a content rating system
- Trying to create shortcode listing custom posts, but formating not being included
- Simple shortcode to check if a user has commented on a certain post
- Undefined Function Fatal Error with Shortcode [closed]
- my website didn’t show the defult right sidebars
- How to use shortcode to get the second to newest post?
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- How can I strip a single tag from an email post
- How do you export and import wordpress blog posts and exclude pagebuilder shortcodes?
- Shortcode in loop always display data of first post on the page