{"id":1052,"date":"2009-12-13T09:53:57","date_gmt":"2009-12-13T16:53:57","guid":{"rendered":"http:\/\/macblaze.ca\/?p=1052"},"modified":"2009-12-15T21:49:08","modified_gmt":"2009-12-16T04:49:08","slug":"shadowbox-js-part-2","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=1052","title":{"rendered":"Shadowbox JS part 2"},"content":{"rendered":"<p>Now lets see what we can do about making this an easier process. Apparently WP 2.8 changed its insert gallery process so you have to save the post first. Then id you wait a moment, the gallery tab appears. Not to useful as it doesn&#8217;t allow you to upload first and gallery later. Nor does it expose the code you to add the rel=&#8221;shadowbox&#8221;<\/p>\n<h2> Study in Travelators&#8230;<\/h2>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-1052 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0909.jpg'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0909-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0908.jpg'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0908-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0907.jpg'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0907-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0903.jpg'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0903-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0902.JPG'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0902-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0901.jpg'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0901-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0900.JPG'><img width=\"150\" height=\"150\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2009\/12\/IMG_0900-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" loading=\"lazy\" \/><\/a>\n\t\t\t<\/dt><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n<p>If, however you have the Image Links  set to <em>true<\/em> on the Shadowbox Automation section of the Shadowbox Plugin Settings, then it will auto-sense the images and give you a slideshow without any of the options. Not optimal, but better than having to code everything by hand just to show a few images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now lets see what we can do about making this an easier process. Apparently WP 2.8 changed its insert gallery process so you have to save the post first. Then id you wait a moment, the gallery tab appears. Not to useful as it doesn&#8217;t allow you to upload first and gallery later. Nor does [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/1052"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1052"}],"version-history":[{"count":0,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/1052\/revisions"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}