{"id":37,"date":"2011-07-07T19:15:14","date_gmt":"2011-07-07T19:15:14","guid":{"rendered":"http:\/\/piwigo.com\/blog\/?p=37"},"modified":"2019-01-28T09:49:50","modified_gmt":"2019-01-28T09:49:50","slug":"a-random-photo-for-your-home-page","status":"publish","type":"post","link":"https:\/\/piwigo.com\/blog\/2011\/07\/07\/a-random-photo-for-your-home-page\/","title":{"rendered":"A Random Photo For Your Home Page"},"content":{"rendered":"<p>The home page of <a href=\"http:\/\/demo1.piwigo.com\" target=\"_blank\">demo1<\/a> is becoming quite popular. If you think that displaying always the same photo on your homepage may become boring, you can create a specific album with all photos you want on your home page. Then, in your home page content, instead of writing:<\/p>\n<blockquote><p>&lt;img src=&#8221;http:\/\/&#8230;.\/photo.jpg&#8221;&gt;<\/p><\/blockquote>\n<p>you can write&#8230;<\/p>\n<blockquote><p>[random album=32]<\/p><\/blockquote>\n<p>&#8230; where 32 is the numeric identifier of the album. Piwigo will randomly pick a photo from this album. You need the plugin <em>Extended Description<\/em> to be active.<\/p>\n<div id=\"attachment_39\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-39\" class=\"size-full wp-image-39\" title=\"piwigo.com-random-photo-homepage\" src=\"http:\/\/piwigo.com\/blog\/wp-content\/uploads\/2011\/07\/piwigo.com-random-photo-homepage.jpg\" alt=\"Random photo on your Piwigo.com home page, new photo on each refresh\" width=\"590\" height=\"750\" srcset=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2011\/07\/piwigo.com-random-photo-homepage.jpg 590w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2011\/07\/piwigo.com-random-photo-homepage-236x300.jpg 236w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><p id=\"caption-attachment-39\" class=\"wp-caption-text\">Random photo on your Piwigo.com home page, new photo on each refresh<\/p><\/div>\n<ul>\n<li>Note 1: The [random album=32] trick works in a PWG Stuffs personal block as well.<\/li>\n<li>Note 2: you can mark the album as private if you want to hide it from your gallery<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The home page of demo1 is becoming quite popular. If you think that displaying always the same photo on your homepage may become boring, you can create a specific album with all photos you want on your home page. Then, in your home page content, instead of writing: &lt;img src=&#8221;http:\/\/&#8230;.\/photo.jpg&#8221;&gt; you can write&#8230; [random album=32] &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","_s2mail":"","footnotes":""},"categories":[42],"tags":[13,12],"class_list":{"0":"post-37","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-work-piwigo","7":"tag-homepage","8":"tag-tip","10":"without-featured-image"},"author_meta":{"display_name":"Pierrick Le Gall","author_link":"https:\/\/piwigo.com\/blog\/author\/plg\/"},"featured_img":null,"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Pierrick Le Gall","author_link":"https:\/\/piwigo.com\/blog\/author\/plg\/"},"coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/piwigo.com\/blog\/category\/work-piwigo\/\" class=\"advgb-post-tax-term\">Work with Piwigo<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Work with Piwigo<\/span>"]},"tags":{"linked":["<a href=\"https:\/\/piwigo.com\/blog\/category\/work-piwigo\/\" class=\"advgb-post-tax-term\">homepage<\/a>","<a href=\"https:\/\/piwigo.com\/blog\/category\/work-piwigo\/\" class=\"advgb-post-tax-term\">tip<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">homepage<\/span>","<span class=\"advgb-post-tax-term\">tip<\/span>"]}},"comment_count":"2","relative_dates":{"created":"Posted 15 years ago","modified":"Updated 7 years ago"},"absolute_dates":{"created":"Posted on July 7, 2011","modified":"Updated on January 28, 2019"},"absolute_dates_time":{"created":"Posted on July 7, 2011 7:15 pm","modified":"Updated on January 28, 2019 9:49 am"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":5,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/662"}],"wp:attachment":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}