I’ve had some help from a developer, and would like to share the solution:
function get_google_tag( $isbn_metadata ) {
return (
/* '<span class="post-meta-key">Preview: </span>' . */
'<script type="text/javascript" src="http://books.google.com/books/previewlib.js"></script>' .
'<script type="text/javascript">' .
'GBS_insertPreviewButtonPopup(\'ISBN:' . $isbn_metadata . '\');' .
'</script>'
);
}
Related Posts:
- Add subtitle to Woocommerce product title
- explode array within shortcode
- Change behavior of “Insert into Post” based on attachment metadata
- Display custom field value on woocommerce product page
- Add new “Insert Into Post” button with another function
- Adding Custom Fields for Img in Posts
- Call a custom field in an audio shortcode?
- wp_editor in add_meta_boxes does not show gallery
- Custom field for default gallery
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- Woocommerce with metabox plugin
- Audio player shortcode not showing up when using variable
- Create WordPress shortcode with php code inside
- Display WP-Types custom fields in post [closed]
- How to add image attachment to post from a single meta key (Woocommerce)
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Shortcode To Display Post Custom Field Value Inside Excerpt
- modify wordpress caption shortcode
- How to create a shortcode to print specific values stored in a post meta array?
- Insert a custom field into a shortcode and use it in post(s)
- Collect user custom field in product page woocommerce
- Trying to reorder posts by custom field
- Custom wysiwyg editor doesn’t execute shortcodes?
- Redirect to another page using contact form 7? [closed]
- Custom Field 101
- shortcode in a custom metabox
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- Shortcode To Display Post Custom Field Value in Post Title, Post Content
- custom field (video/audio url) and embed functionality
- IF Custom field value equals ZERO
- Display MP3 as media using an URL from a custom field
- Using a custom field inside a shortocde
- Enable a short code in the custom meta field
- do_shortcode close
- how to add product subscription field in woocommerce plugin
- Run Function if Order Meta Exists – WooCommerce
- How to pass custom field value to shortcode?
- grab or load text on demand
- Replacing custom field with shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- get_post_meta shortcode returns empty field
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- How to pass multiple custom fields as shortcode’s parameters
- how can i show WordPress custom field data to my short code?
- Search fails when using the radio buttons
- Create Shortcode shows only posts with custom_field meta
- Output Custom Field value to shortcode
- PHP and Shortcode Combination
- Stop truncation of shortcodes in custom text fields?
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Custom Info Box at end of posts?
- Running a Gallery Shortcode in a Custom Fields Widget
- Custom field in a shortcode?
- Display meta data from a custom field within plugin Category Grid View Gallery
- Insert wp gallery shortcode into custom textarea
- Displaying shortcode content inside custom field without images
- Parse Shortcodes in Theme’s Custom Field?
- Insert shortcode before and after a list automatically
- Retrieving custom field as shortcode
- Custom fields doesnt work well with any postTAB plugin
- How to include custom field in shortcode (do_shortcode) in theme file
- How I can change PayPal IPN ‘custom’ field in woocommerce?
- Shortcode not picking up custom field
- get_the_ID() retrieves same ID on Gutenberg’s Query Loop
- How do I Implement Atomic Update of Post Metadata?
- Orderby is working with one query but not with other
- Making a Template for a CPT created by a plugin
- My custom backend codes shows up when i try to view my website
- Use WPbakery for own custom field [closed]
- creating html reusable blocks via shortcodes
- How to create a gallery custom field for WordPress post?
- auto populate list of questions if user select a category xyz
- Is there a simpler version of WP Media?
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- Product Custom Fields with HTML and JS
- How to add posts through CSV or excel file in a PHP file
- Order RSS content by an advanced custom field value
- Add new image block, set default class name and update it using Javascript
- Add image to menu item with ACF
- Advanced search by two criteria – sort by location and date (ascending or descending)
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- add_shortcode is not working in plugin where others are working
- Modifying custom order item meta from admin order view
- Single API call exposed via shortcode with params
- Bulk append custom field to post content
- Custom Field Values not updating unless I click “Update” twice
- Let users track progress by entering a number daily in profile?
- adding extra wordpress user info from registration form
- Hide custom meta data if empty
- Custom Meta Box (SELECT) Not Saving
- SEO Friendly URL on dynamic product page produced via shortcode
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- Custom fields value
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- How to create an input field, and base the output on spreadsheet data? [closed]
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Better way to save image in custom field
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working