I would recommend doing it mostly in Javascript:
Basic steps (pseudo code):
- On the archive page add check boxes
<input type="checkbox" name="post-with-id-1" value="1">
next to each post and a submit button<input type="submit" value="Submit">
at the top or bottom of the page. - In js, listen for clicks on the submit button. When it is clicked check which checkboxes are checked and create an array of post ids.
- The simplest thing to do then would be to build a url that opens a page in the browser from the REST API like this http://demo.wp-api.org/wp-json/wp/v2/posts?include[]=470&include[]=469 where you append an ‘include[]=470’ for each of the selected posts. That url will build JSON Array that includes object representations of each of your posts.
Related Posts:
- How can I export WordPress posts’ attachments?
- How can I export and then import posts with featured images?
- Exporting Data from WordPress into a flat table
- Importing New Posts from Live Site into Local Dev Site
- How much of my site can I recover from public_html?
- Retain select value in select box
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- WordPress Local And Live Site
- Overwrite posts/pages via import
- Importing posts only – consequences?
- How to populate a select field with post titles/ids in a block
- Extract wordpress posts content and category content
- When moving a WordPress installation to a new server, why do I have to update each post before content shows?
- Extract the last published post
- Featured image error after importing blog posts
- Custom Select Query pagination not working properly
- Add category selection to function request
- Get post title by Alphabet
- Moving Posts to a new site and maintaining URLs
- Export Posts Without Categories In An XML File
- ZIP up all images displayed in a [gallery] and offer as download link
- How to use “Add link” pop up for a WordPress widget
- How to validate XML-RPC post creation and cancel when needed?
- the_author() returns empty string
- Custom permalink structure only for default posts
- List latest posts in WP-Admin
- Email admin when post pending?
- How to control which category will be picked for the slug of a post?
- WordPress Number of Posts Not Changing With posts_per_page
- Adding a Nav menu to post admin
- Comments enabled, but disabled at the same time
- Mass Update lines of code for all posts
- set role specific screen options in post summary page
- How to get a nofication when post submitted
- How to link up “read more” on excerpts hack from WP Recipies
- Any idea why wp_insert_post is succeeding but not returning?
- How to change the page break URL from ../post/2 to …/post/page2/
- Show ‘Read more’ in rss feed
- Planned private posts get published immediately
- Get specific posts by ID in wordpress
- Change post_date to post_modified date on post template?
- Update Post creation date when updated
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- Query how many items to show in shortcode
- wp_insert_posts add title with count of posts plus one
- How to make classes for posts?
- Relative redirects for posts, categories, products and product categories
- Default to ‘all’ view on the ‘edit-post’ screen for authors
- How could I change my Permalink from blog to custom structure? [closed]
- WP Admin register taxonomy and post type performance
- How to get the last selected media alignment setting?
- How to make multiple sections in home pulling posts category wise?
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Highlight static blog page link in header
- What file is the standard frontpage that lists all the posts?
- wp_insert_post_data: Limit number of Page but Post get affected
- Is there any upper limit for the number of posts that can be created with wordpress
- Possible to add a statement to a core file?
- older blog posts not showing in new theme
- Is there any way to stylize articles one by one?
- get_children returns older images
- How to display post title inside thumbnail?
- Exclude post category in a blog page
- Banner appearing on Pages but not Posts; call it conditional confusion
- how do I get the title in the post [closed]
- Publish a Silent Post without updating Feed
- How to display a single(current) post from a category
- Delete post from admin but not from database
- Open a wordpress single post in a lightbox without the header and footer
- how to create a sub section in posts
- Filter out posts based on a certain post_meta on the WordPress REST API
- Edit post & page option does not display on latest wordpress
- Separate top level categories on archive-product.php by meta
- How to add text before post_excerpt in Gutenberg
- Pinterest button shows image options from different posts
- allow user to create a draft post but not publish wordpress
- Comments are in database, don’t show up in WordPress backend or frontend
- Many buttons not functioning in WordPress dashboard (as admin)
- WP_Query that targets all categories
- Fill the exclude array() in get_posts()
- Prevent WordPress from putting around specific element
- How to put the WordPress blog into theme
- How to correctly escape data
- Sort Events by Venue Title – Sort Post set by related post ids
- Get posts by category or author
- How to make post button to a random post
- I moved my site to another server, wp admin works so does the front page, but posts don’t work
- How can I have the posts from one word press blog show on the presentation page of another word press site
- How to pass multiple checkbox values to wordpress query?
- How to create three columns from selected posts
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- Getting 404 when using rewrite rule for posts
- Posts and pages not getting published
- How to create a post based on data in a table?
- how to show all post with its contents
- Last updated post in wordpress homepage first position
- How to make category for word post_content
- How does WordPress add the comments and comment form to posts
- How to automatically convert a form with HTML link into post
- WordPress Post Updating is Not Working