{"id":3975,"date":"2015-11-17T11:19:24","date_gmt":"2015-11-17T10:19:24","guid":{"rendered":"http:\/\/wppa.opajaap.nl\/?page_id=3975"},"modified":"2021-09-01T13:23:12","modified_gmt":"2021-09-01T11:23:12","slug":"photo-url","status":"publish","type":"page","link":"https:\/\/wppa.nl\/sv\/docs-by-subject\/photo-url\/","title":{"rendered":"Photo url"},"content":{"rendered":"<p>The <code>type=\"url\"<\/code> shortcode returns the url to the specified photo. The highest available resolution file will be used.<\/p>\n<p>Example: <code>[<\/b><b>wppa type=\"url\" photo=\"3959\"]<\/code> produces this text:<\/p>\n<p><code>https:\/\/wppa.nl\/wp-content\/uploads\/wppa-source\/album-120\/Nena.jpg?ver=3<\/code><\/p>\n<p>This demo site uses Cloudinary CDN, so you will see an url to a file on Cloudinary.<br \/>\nIf I de-activate Cloudinary, it will show: <\/p>\n<p><code>\/wp-content\/uploads\/wppa-source\/album-120\/Nena.jpg<\/code><\/p>\n<p>You can use it in an img tag as follows:<\/p>\n<p><code>&lt;img src='[<b><\/b>wppa type=\"url\" photo=\"3959\"]' \/><\/code> produces:<\/p>\n<p><img src='https:\/\/wppa.nl\/wp-content\/uploads\/wppa-source\/album-120\/Nena.jpg?ver=3' \/><\/p>\n<p>Note the single quotes in <code>the src='...'<\/code> attribute. This is to avoid contamination with the double quotes in the shortcode.<\/p>\n<p>This feature is especially developed to use the photo of the day as a plain image:<\/p>\n<p><code>&lt;img src='[<b><\/b>wppa type=\"url\" photo=\"#potd\"]' style=\"width:400px;\" \/><\/code> produces:<\/p>\n<p><img src='https:\/\/wppa.nl\/wp-content\/uploads\/wppa-source\/album-35\/HPIM1324-o1.JPG?ver=3' style=\"width:400px;\" \/><\/p>\n<p>Note: <code>&lt;img src=\"[<b><\/b>wppa type='url' photo='#potd']\" style=\"width:100px;\" \/><\/code> will also work:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wppa.nl\/wp-content\/uploads\/wppa-source\/album-35\/HPIM1324-o1.JPG?ver=3\" style=\"width:100px;\" \/><\/p>\n<p>Use the <strong>Text<\/strong> editor, NOT the <strong>Visual<\/strong> !!<\/p>\n<p>To use photo urls in photo descriptions, use <a href=\"http:\/\/wppa.nl\/keywords\/\" target=\"_blank\" rel=\"noopener\">wppa #keywords<\/a><br \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The type=\"url\" shortcode returns the url to the specified photo. The highest available resolution file will be used. Example: [wppa type=\"url\" photo=\"3959\"] produces this text: This demo site uses Cloudinary CDN, so you will see an url to a file on Cloudinary. If I de-activate Cloudinary, it will show: \/wp-content\/uploads\/wppa-source\/album-120\/Nena.jpg You can use it in <a href='https:\/\/wppa.nl\/sv\/docs-by-subject\/photo-url\/' class='excerpt-more'>[...]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":4738,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3975","page","type-page","status-publish","hentry","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/pages\/3975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/comments?post=3975"}],"version-history":[{"count":2,"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/pages\/3975\/revisions"}],"predecessor-version":[{"id":6703,"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/pages\/3975\/revisions\/6703"}],"up":[{"embeddable":true,"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/pages\/4738"}],"wp:attachment":[{"href":"https:\/\/wppa.nl\/sv\/wp-json\/wp\/v2\/media?parent=3975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}