{"id":28619,"date":"2014-03-31T06:12:44","date_gmt":"2014-03-31T06:12:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/show-post-in-lightbox\/"},"modified":"2026-09-16T06:13:15","modified_gmt":"2026-09-16T06:13:15","slug":"show-post-in-lightbox","status":"publish","type":"plugin","link":"https:\/\/dv.wordpress.org\/plugins\/show-post-in-lightbox\/","author":10165665,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.0","stable_tag":"2.0.0","tested":"7.1.3","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Show Post In lightbox","header_author":"OpenSource Technologies","header_description":"","assets_banners_color":"e4f2f6","last_updated":"2026-09-16 06:13:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/show-post-in-lightbox\/","header_author_uri":"https:\/\/ost.agency\/","rating":5,"author_block_rating":0,"active_installs":40,"downloads":5107,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"opensourcetech","date":"2026-09-16 06:13:15","revision":3697982}},"upgrade_notice":{"2.0.0":"<p>Security update. Stops drafts and private posts being shown in the lightbox and fixes fatal errors on PHP 8.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1212502,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":917772,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[89,237,491,166,80],"plugin_category":[43],"plugin_contributors":[84404],"plugin_business_model":[],"class_list":["post-28619","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-lightbox","plugin_tags-popup","plugin_tags-posts","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-opensourcetech","plugin_committers-opensourcetech"],"banners":{"banner":"https:\/\/ps.w.org\/show-post-in-lightbox\/assets\/banner-772x250.png?rev=917772","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/show-post-in-lightbox\/assets\/icon-128x128.jpg?rev=1212502","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Show Post In lightbox lists posts from a category on any page, post or sidebar. Visitors click a title and the post opens in a lightbox, without leaving the page.<\/p>\n\n<ul>\n<li><code>[ostlist]<\/code> shortcode for posts and pages. Use it as many times as you like.<\/li>\n<li>\"Show Posts By Category\" widget for sidebars.<\/li>\n<li>Optional post date and featured image thumbnail.<\/li>\n<li>Accessible lightbox: keyboard friendly, closes with Esc, returns focus to the link.<\/li>\n<li>Only published, public, non-password-protected posts are ever shown.<\/li>\n<li>Without JavaScript the links open the normal post page.<\/li>\n<\/ul>\n\n<h4>Shortcode<\/h4>\n\n<pre><code>[ostlist catid=\"3\" limit=\"5\" orderby=\"title\" order=\"ASC\" showdate=\"Y\" showthumbnail=\"thumbnail\"]\n<\/code><\/pre>\n\n<ul>\n<li><code>catid<\/code> \u2013 category ID, or several IDs separated by commas. Default: all categories.<\/li>\n<li><code>limit<\/code> \u2013 number of posts, 1 to 100. Default: 10.<\/li>\n<li><code>orderby<\/code> \u2013 <code>date<\/code>, <code>title<\/code>, <code>author<\/code>, <code>rand<\/code>, <code>modified<\/code>, <code>ID<\/code> or <code>menu_order<\/code>. Default: <code>date<\/code>.<\/li>\n<li><code>order<\/code> \u2013 <code>ASC<\/code> or <code>DESC<\/code>. Default: <code>DESC<\/code>.<\/li>\n<li><code>catnotin<\/code> \u2013 category IDs to exclude, separated by commas.<\/li>\n<li><code>postnotin<\/code> \u2013 post IDs to exclude, separated by commas.<\/li>\n<li><code>showdate<\/code> \u2013 <code>Y<\/code> to show the post date. Default: <code>N<\/code>.<\/li>\n<li><code>showthumbnail<\/code> \u2013 an image size (<code>thumbnail<\/code>, <code>medium<\/code>, <code>large<\/code>, <code>full<\/code>) or a width and height such as <code>50,50<\/code>. Leave empty for no image.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>In your WordPress admin go to Plugins &gt; Add New, search for \"Show Post In lightbox\", then install and activate it.<\/li>\n<li>Add the <code>[ostlist]<\/code> shortcode to a post or page, or add the \"Show Posts By Category\" widget under Appearance &gt; Widgets.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20private%20or%20draft%20posts%20appear%20in%20the%20lightbox%3F\"><h3>Can private or draft posts appear in the lightbox?<\/h3><\/dt>\n<dd><p>No. The lightbox only loads posts that anyone can already read on your site. Drafts, private, scheduled and password-protected posts are refused.<\/p><\/dd>\n<dt id=\"do%20my%20existing%20shortcodes%20and%20widgets%20still%20work%20after%20updating%20to%202.0.0%3F\"><h3>Do my existing shortcodes and widgets still work after updating to 2.0.0?<\/h3><\/dt>\n<dd><p>Yes. The shortcode name, its attributes and the widget settings are unchanged.<\/p><\/dd>\n<dt id=\"the%20lightbox%20looks%20different%20from%20version%201.0\"><h3>The lightbox looks different from version 1.0<\/h3><\/dt>\n<dd><p>Version 2.0.0 uses a new, lighter lightbox. If your theme styled the old <code>.confirmon-box<\/code> classes, update your CSS to target <code>.spbc-lightbox<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Security: the lightbox could display any post, including drafts, private and password-protected posts. It now only shows public posts.<\/li>\n<li>Security: all output is escaped and all shortcode and widget settings are validated.<\/li>\n<li>Fixed fatal errors on PHP 8 (removed <code>create_function<\/code> and the PHP 4 widget constructor).<\/li>\n<li>New accessible lightbox using the native dialog element; no jQuery needed.<\/li>\n<li>Posts load through a read-only REST API route; old <code>?popup=Y<\/code> links now redirect to the post.<\/li>\n<li>Scripts and styles load only on pages that show a list.<\/li>\n<li>Widget settings now remember the selected order, order by and thumbnail size.<\/li>\n<li>Category lists include posts in child categories, as before.<\/li>\n<li>Now requires WordPress 6.0 and PHP 7.4 or later. Tested up to WordPress 7.1.<\/li>\n<li>License changed to GPLv2 or later.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"List posts from a category with a shortcode or widget, and open each post in a lightbox.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/28619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=28619"}],"author":[{"embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/opensourcetech"}],"wp:attachment":[{"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=28619"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=28619"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=28619"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=28619"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=28619"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/dv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=28619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}