{"id":15391,"date":"2019-09-11T20:55:24","date_gmt":"2019-09-11T18:55:24","guid":{"rendered":"https:\/\/www.wp-amazon-plugin.com\/?post_type=knowledgebase&#038;p=15391"},"modified":"2019-09-11T20:55:24","modified_gmt":"2019-09-11T18:55:24","slug":"can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field","status":"publish","type":"knowledgebase","link":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/","title":{"rendered":"Can the [asa2] shortcode retrieve the ASIN from a custom field?"},"content":{"rendered":"<p>Yes, this is possible.<\/p>\n<p>If you use Advanced Custom Fields (ACF) for managing your custom fields, first create a new field, let&#8217;s say &#8222;my_asin&#8220;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-15392\" src=\"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress.png\" alt=\"\" width=\"797\" height=\"305\" srcset=\"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress.png 797w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-300x115.png 300w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-768x294.png 768w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-125x48.png 125w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-75x29.png 75w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205006\/Edit_Field_Group_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-100x38.png 100w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><\/p>\n<p>Then in your post editor, enter the ASIN in the custom field below the text and use the  shortcode to retrieve it and put it inside your <style type=\"text\/css\">.asa2_horizontal_box {background-color:#FFFFFF !important;border:1px solid #CCCCCC; padding:11px; padding-bottom:28px;margin-bottom:15px;-moz-border-radius:px;border-radius:px;float:none;clear:both;}.asa2_horizontal_box img {border:0;}.asa2_horizontal_box .asa2_product_col_1 img {margin:0; padding:0;}.asa2_horizontal_box .asa2_title {margin:0 0 10px 0 !important;font-size:130%;}.asa2_horizontal_box .asa2_title a {;}.asa2_horizontal_box .asa2_title a, .asa2_horizontal_box .asa2_title a:visited, .asa2_horizontal_box .asa2_title a:hover {}.asa2_horizontal_box .asa2_product_col_1 {float:left; margin-right:10px; border:0;}.asa2_horizontal_box .asa2_product_col_2 {float:none;width:auto;overflow:hidden;}.asa2_horizontal_box p {padding-bottom:5px; margin-bottom:0;}.asa2_horizontal_box .asa2_reviews {margin-top:5px;font-size:12px;}.asa2_horizontal_box .asa2_offers {font-size:0.8em;}.asa2_horizontal_box .asa2_merchant {font-size:0.8em;}.asa2_horizontal_box .asa2_reviews img {vertical-align:text-bottom;}.asa2_horizontal_box div.price span, .asa2_horizontal_box div.price_save span {color:#990000; font-weight:bold;}.asa2_horizontal_box div.price_save {font-size:80%;}.asa2_horizontal_box div.asa2_as_of {font-size:12px !important;display:inline;margin-left:20px;}.asa2_horizontal_box div.price img {vertical-align:middle;margin-left:4px;}.asa2_horizontal_box div.price .asa2_prime_pic {vertical-align:middle;}.asa2_horizontal_box span.asa2_offers_new {margin-right:20px;}.asa2_horizontal_box .description {margin:10px 0;font-size:80%;}.asa2_horizontal_box .disclaimer {font-size:x-small;margin-bottom:10px;}.asa2_horizontal_box .features {margin-top:10px;font-size:80%;}.asa2_horizontal_box .features ul {list-style-position:inside;}.asa2_horizontal_box .asa2_product_gallery {margin-top:10px;}.asa2_horizontal_box .owl-carousel .owl-item img {width:auto !important;}.asa2_horizontal_box .fullwidth_col {float:none !important; margin:0px !important; width:100% !important;}@media only screen and (max-width:768px) {.asa2_horizontal_box .asa2_product_col_1, .asa2_horizontal_box .asa2_product_col_1 {float:none; margin-right:0px; width:100% !important;}.asa2_horizontal_box .asa2_product_col_1 {margin-bottom:15px;}.asa2_horizontal_box img {margin:0 auto;}.asa2_product_col_2 {margin-left:auto !important;}}@media (max-width:500px) {.asa2_horizontal_box .asa2_product_col_1 img {max-width:100% !important;width:100% !important;}}.asa2_horizontal_box_outer {position:relative;z-index:1;}.asa2_horizontal_box {box-shadow:none;}.asa2_horizontal_box:before, .asa2_horizontal_box:after {z-index:-1;position:absolute;content:\"\";bottom:15px;left:10px;width:50%;top:80%;max-width:300px;background:#777;-webkit-box-shadow:0 15px 10px #777;-moz-box-shadow:0 15px 10px #777;box-shadow:0 15px 10px #777;-webkit-transform:rotate(-3deg);-moz-transform:rotate(-3deg);-o-transform:rotate(-3deg);-ms-transform:rotate(-3deg);transform:rotate(-3deg);}.asa2_horizontal_box:after {-webkit-transform:rotate(3deg);-moz-transform:rotate(3deg);-o-transform:rotate(3deg);-ms-transform:rotate(3deg);transform:rotate(3deg);right:10px;left:auto;}#asa2_01a574939abfee8731cfbcc51501e5a1-price-modal:target {opacity:1;pointer-events:auto;}<\/style><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-15394\" src=\"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress.png\" alt=\"\" width=\"1059\" height=\"325\" srcset=\"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress.png 1059w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-300x92.png 300w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-768x236.png 768w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-1024x314.png 1024w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-125x38.png 125w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-75x23.png 75w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-100x31.png 100w, https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2019\/09\/11205241\/Edit_Post_%E2%80%B9_My_Great_Blog_%E2%80%94_WordPress-862x265.png 862w\" sizes=\"(max-width: 1059px) 100vw, 1059px\" \/><\/p>\n<p>This simple example makes little sense because you could also enter the ASIN directly. It&#8217;s only intended to illustrate the basic ways in which you can use custom fields to dynamically build your ASA2 shortcodes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, this is possible. If you use Advanced Custom Fields (ACF) for managing your custom fields, first create a new field, let&#8217;s say &#8222;my_asin&#8220;. Then in your post editor, enter the ASIN in the custom field below the text and use the shortcode to retrieve it and put it inside your This simple example makes little sense because you could &#8230; <\/p>\n<div><a href=\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\" class=\"more-link\">Read More<\/a><\/div>\n","protected":false},"author":1170,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[215],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate\" \/>\n<meta property=\"og:description\" content=\"Yes, this is possible. If you use Advanced Custom Fields (ACF) for managing your custom fields, first create a new field, let&#8217;s say &#8222;my_asin&#8220;. Then in your post editor, enter the ASIN in the custom field below the text and use the shortcode to retrieve it and put it inside your This simple example makes little sense because you could ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Amazon Simple Affiliate\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpasa2\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-amazon-plugin.com\/wp-content\/uploads\/2019\/09\/Edit_Field_Group_\u2039_My_Great_Blog_\u2014_WordPress.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ifeelwebde\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\",\"url\":\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\",\"name\":\"Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate\",\"isPartOf\":{\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/#website\"},\"datePublished\":\"2019-09-11T18:55:24+00:00\",\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/#website\",\"url\":\"https:\/\/www.wp-amazon-plugin.com\/\",\"name\":\"Amazon Simple Affiliate\",\"description\":\"Upgrade your WordPress Affiliate skills!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wp-amazon-plugin.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/","og_locale":"de_DE","og_type":"article","og_title":"Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate","og_description":"Yes, this is possible. If you use Advanced Custom Fields (ACF) for managing your custom fields, first create a new field, let&#8217;s say &#8222;my_asin&#8220;. Then in your post editor, enter the ASIN in the custom field below the text and use the shortcode to retrieve it and put it inside your This simple example makes little sense because you could ... Read More","og_url":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/","og_site_name":"Amazon Simple Affiliate","article_publisher":"https:\/\/www.facebook.com\/wpasa2\/","og_image":[{"url":"https:\/\/www.wp-amazon-plugin.com\/wp-content\/uploads\/2019\/09\/Edit_Field_Group_\u2039_My_Great_Blog_\u2014_WordPress.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@ifeelwebde","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/","url":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/","name":"Can the [asa2] shortcode retrieve the ASIN from a custom field? - Amazon Simple Affiliate","isPartOf":{"@id":"https:\/\/www.wp-amazon-plugin.com\/#website"},"datePublished":"2019-09-11T18:55:24+00:00","inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/custom-fields\/can-the-asa2-shortcode-retrieve-the-asin-from-a-custom-field\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wp-amazon-plugin.com\/#website","url":"https:\/\/www.wp-amazon-plugin.com\/","name":"Amazon Simple Affiliate","description":"Upgrade your WordPress Affiliate skills!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-amazon-plugin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/15391"}],"collection":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/users\/1170"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/comments?post=15391"}],"version-history":[{"count":1,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/15391\/revisions"}],"predecessor-version":[{"id":15396,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/15391\/revisions\/15396"}],"wp:attachment":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/media?parent=15391"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase_cat?post=15391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}