I am a little confused as to your question. If you know how to create shortcodes with attributes, then I think the answer to your question is to simply output text with the correct attributes predefined.
For example, just add text into your custom column for the appropriate arguments, such as echo “[book id=” . $post->ID . “]”. The shortcode isn’t generated in any permanent way, it’s just a textual representation of the arguments required to display that specific information. In this example your shortcode would extract the ID argument and select the correct post via it’s ID.
Related Posts:
- PHP error with shortcode handler from a class
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Get List of Registered Meta Boxes and Removing Them
- How to add tab which is visible only in admin side of product in woocommerce? [closed]
- Optimize shortcode callbacks
- How would I create a plugin for my shortcodes?
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Dashboard like meta boxes in my plugin – how to save their position and open/closed state?
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- Save metabox with multiple checkbox array
- How do I make specific plugin functionality apply to different sites in a network?
- How to Use WordPress Color Picker API in Custom Post Type Metabox
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- How to create Image gallery Metabox in wordpress [closed]
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Get returned variable from a function to add_shortcode function
- How to add meta boxes to the ‘Add new post’ screen?
- What is rich_editing?
- Why is my shortcode not working
- Rearranging Dashboard meta boxes with use of plugin/functions.php
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- On plugin deactivation hide its shortcode
- Plugin admin page meta_box toggle and order state not saving
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- Metabox Not Showing on Custom Post Type But On Pages and Post
- How can I render shortcode so that its not cached by Caching plugins?
- Best choice of options/settings framework for plugin/theme development
- Is it possible to delay execution of shortcode output callback?
- Processing shortcodes in groups (separated by line breaks)?
- How do I write a shortcode that opens and closes?
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Show add_meta_box by selecting a specific category
- Using a Shortcode to Replace Themes Stylesheet?
- update post meta for checkbox in the admin when inserted in the front-end
- Gutenberg Block showing invalid content on edit
- Creating a shortcode, but getting tied up with OOP and Classes?
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?
- What is the proper way to include Bootstrap when executing a shortcode
- Custom Taxonomy to dropdown box on adminside wordpress
- Auto gallery from folder contents
- Secure Pages Best Practice
- Adding option to Gallery shortcode
- Create & Save multiple Meta-boxes
- add_shortcode() not working inside of function
- Add a Save Button to Custom Meta Box [duplicate]
- Dashboard – get status and position of metaboxes and pass them to ajax method
- Getting List of all registered Dashboard Widgets
- what is the difference between these phares?
- How to get Metabox custom field to show checked if value is updated using post meta query?
- How do I update a field of a meta box?
- Asynchronously render shortcodes in TinyMCE visual editor
- Custom login doesn’t work properly
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Input value from metabox is not found in $_POST after post save
- Run Shortcode of post’s custom field in functions.php / Plugin
- Shortcode returning localized HTML part
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- Including comments meta box on a plugin page
- Enumerating shortcode attributes in JavaScript
- Wrap text around shortcode
- wp_nonce_field displaying twice
- How to handle shortcodes through plugin
- How to add a widget to the post editing view?
- Adding admin menus to wordpress
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Create Widget or Enable Shortcodes in Sidebar
- Meta box on options page save form problem
- Moving/dragging a metabox removes TinyMCE’s content
- Store custom meta box data as serialized array
- shortcode executed in the page editor
- WP nonce field checkbox prints checked=’checked’ outside input field
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- How to make my shortcode load scripts and styles, from within the plugin?
- How to display the categories on page using shortcode?
- Shortcode conflicts
- How to create ShortCode
- How to add custom post widgets as tags into wordpress
- How to display the specific post content by using POST ID
- How to output functions from plugin inside theme
- add_filter img_caption_shortcode not implemented
- shortcode tags not working in do_shortcode
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Form submission to another page returning 404 error [duplicate]
- Passing values between enclosing and enclosed shortcodes
- Using a shortcode to get User Emails by role as specified in the shortcode, need help to allow for multiple roles
- Resending woo-commerce order emails from frontend