{"id":45794,"date":"2012-12-13T10:45:03","date_gmt":"2012-12-13T10:45:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/list-category-posts-with-lightbox\/"},"modified":"2013-02-04T06:37:35","modified_gmt":"2013-02-04T06:37:35","slug":"list-category-posts-with-lightbox","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/list-category-posts-with-lightbox\/","author":10165665,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.24","stable_tag":"trunk","tested":"3.5.2","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"List members posts with lightbox","header_author":"Opensourcetechnologies","header_description":"","assets_banners_color":"e2e8e6","last_updated":"2013-02-04 06:37:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/opensourcetechnologies.com","header_author_uri":"http:\/\/opensourcetechnologies.com","rating":3,"author_block_rating":0,"active_installs":10,"downloads":5235,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","other_notes"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"638504","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[610,225,237,245,166],"plugin_category":[57],"plugin_contributors":[84404],"plugin_business_model":[],"class_list":["post-45794","plugin","type-plugin","status-closed","hentry","plugin_tags-categories","plugin_tags-cms","plugin_tags-lightbox","plugin_tags-list","plugin_tags-posts","plugin_category-taxonomy","plugin_contributors-opensourcetech","plugin_committers-opensourcetech"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/list-category-posts-with-lightbox_e2e8e6.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>List members posts with lightbox (with featured image) allows you to list posts from a category into a post\/page using the [catlist] shortcode.<\/p>\n\n<p>The shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can also display the post author, date, excerpt, custom field values, even the content! The [catlist] shortcode can be used as many times as needed with different arguments on each post\/page.\n A lightbox will be popup after clicking a particular image of a post. It will display the post content regarding the featured image.\nGreat to use WordPress as a CMS, and create pages with several categories posts.<\/p>\n\n<p>\u00a0If you want custom changes or styles you can contact us at info@opensourcetechnologies.com<\/p>\n\n<p><strong>Widget<\/strong>: It also includes a widget which works pretty much the same as the plugin. Just add as many widgets as you want, and select all the available options from the Appearence &gt; Widgets page.<\/p>\n\n<p><strong>Usage<\/strong><\/p>\n\n<pre><code>[catlist thumbnail=yes id=16 thumbnail_size=70,70]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ul>\n<li>Upload zip file into your wp-content\/plugins\/ directory.<\/li>\n<li>Login to your WordPress Admin menu, go to Plugins, and activate it.<\/li>\n<li>You can find the List Category Posts widget in the Appearence &gt; Widgets section on your WordPress Dashboard.<\/li>\n<li>If you want to customize the way the plugin displays the information, check the section on Templates on this documentation.<\/li>\n<\/ul>\n\n<!--section=other_notes-->\n<p><strong>Selecting the category<\/strong><\/p>\n\n<p>The plugin can figure out the category from which you want to list posts in three different ways: Using the <em>category id<\/em>, the <em>category name or slug<\/em> and <em>detecting the current post's category<\/em>.\nWhen using List members posts with lightbox inside a post, if you don't pass the category id, name or slug, it will post the latest posts from every category. \nYou can use the <em>categorypage<\/em> parameter to make it detect the category id of the current posts, and list posts from that category.\n The parameters for choosing the category id are:<\/p>\n\n<ul>\n<li><p><strong>name<\/strong> - To display posts from a category using the category's name or slug. Ex: [catlist name=mycategory]<\/p><\/li>\n<li><p><strong>id<\/strong> - To display posts from a category using the category's id. Ex: [catlist id=24]. You can <strong>include several categories<\/strong>: Ex: [catlist id=17,24,32] or <strong>exclude<\/strong> a category with the minus (-)<\/p><\/li>\n<li><p><strong>categorypage<\/strong> - Set it to \"yes\" if you want to list the posts from the current post's category.<\/p><\/li>\n<\/ul>\n\n<p><strong>Other parameters<\/strong><\/p>\n\n<ul>\n<li><p><strong>tags<\/strong> - Tag support, you can display posts from a certain tag.<\/p><\/li>\n<li><p><strong>orderby<\/strong> - To customize the order. Valid values are:<\/p>\n\n<ul>\n<li><strong>author<\/strong> - Sort by the numeric author IDs.<\/li>\n<li><strong>category<\/strong> - Sort by the numeric category IDs.<\/li>\n<li><strong>content<\/strong> - Sort by content.<\/li>\n<li><strong>date<\/strong> - Sort by creation date.<\/li>\n<li><strong>ID<\/strong> - Sort by numeric post ID.<\/li>\n<li><p><strong>menu_order<\/strong> - Sort by the menu order. Only useful with pages.<\/p><\/li>\n<li><p><strong>name<\/strong> - Sort by stub.<\/p><\/li>\n<li><p><strong>rand<\/strong> - Randomly sort results.<\/p><\/li>\n<li><p><strong>title<\/strong> - Sort by title.<\/p><\/li>\n<\/ul><\/li>\n<li><p><strong>order<\/strong> - How to sort <strong>orderby<\/strong>. Valid values are:<\/p>\n\n<ul>\n<li><strong>ASC<\/strong> - Ascending (lowest to highest).<\/li>\n<li><strong>DESC<\/strong> - Descending (highest to lowest). Ex: [catlist name=mycategory orderby=title order=asc]<\/li>\n<\/ul><\/li>\n<li><p><strong>numberposts<\/strong> - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Default: 5. Ex: [catlist name=mycategory numberposts=10]<\/p><\/li>\n<li><p><strong>date<\/strong> - Display post's date next to the title. Default is 'no', use date=yes to activate it.<\/p><\/li>\n<li><p><strong>author<\/strong> - Display the post's author next to the title. Default is 'no', use author=yes to activate it.<\/p><\/li>\n<li><p><strong>dateformat<\/strong> - Format of the date output. Default is get_option('date_format'). Check http:\/\/codex.wordpress.org\/Formatting_Date_and_Time for possible formats.<\/p><\/li>\n<li><p><strong>excerpt<\/strong> - Display the post's excerpt. Default is 'no', use excerpt=yes to activate it.<\/p><\/li>\n<li><p><strong>excerpt_size<\/strong> - Set the number of characters to display from the excerpt. Default is 255. Eg: <code>excerpt_size = 300<\/code><\/p><\/li>\n<li><p><strong>excludeposts<\/strong> - IDs of posts to exclude from the list. Use 'this' to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]<\/p><\/li>\n<li><p><strong>offset<\/strong> - You can displace or pass over one or more initial posts which would normally be collected by your query through the use of the offset parameter.<\/p><\/li>\n<li><p><strong>content<\/strong> - Show the full content of the post. Default is 'no'. Ex: [catlist content=yes]<\/p><\/li>\n<li><p><strong>catlink<\/strong> - Show the title of the category with a link to the category. Use the <strong>catlink_string<\/strong> option to change the link text. Default is 'no'. Ex: [catlist catlink=yes]. The way it's programmed, it should only display the title for the first category you chose, and include the posts from all of the categories. I thought of this parameter mostly for using several shortcodes on one page or post, so that each group of posts would have the title of that group's category. If you need to display several titles with posts, you should use one [catlist] shortcode for each category you want to display.<\/p><\/li>\n<li><p><strong>comments<\/strong> - Show comments count for each post. Default is 'no'. Ex: [catlist comments=yes].<\/p><\/li>\n<li><p><strong>thumbnail<\/strong> - Show post thumbnail. Default is 'no'. Ex: [catlist thumbnail=yes].<\/p><\/li>\n<li><p><strong>thumbnail_size<\/strong> - Either a string keyword (thumbnail, medium, large or full) or 2 values representing width and height in pixels. Ex: [catlist thumbnail_size=32,32] or [catlist thumbnail_size=thumbnail]<\/p><\/li>\n<li><p><strong>thumbnail_class<\/strong> - Set a CSS class to the thumbnail and style it.<\/p><\/li>\n<li><p><strong>post_type<\/strong> - The type of post to show. Available options are: post - Default, page, attachment, any - all post types.<\/p><\/li>\n<li><p><strong>post_parent<\/strong> - Show only the children of the post with this ID. Default: None.<\/p><\/li>\n<li><p><strong>class<\/strong> - CSS class for the default UL generated by the plugin.<\/p><\/li>\n<li><p><strong>custom fields<\/strong> - To use custom fields, you must specify two values: customfield_name and customfield_value. Using this only show posts that contain a custom field with this name and value. Both parameters must be defined, or neither will work.<\/p><\/li>\n<li><p><strong>customfield_display<\/strong> - Display custom field(s). You can specify many fields to show, separating them with a coma.<\/p><\/li>\n<li><p><strong>template<\/strong> - File name of template from templates directory without extension. Example: For 'template.php' value is only 'template'. Default is 'default', which displays an unordered list (ul html tag) with a CSS class. This class can be passed as a parameter or by default it's: 'lcp_catlist'. You can also use the default 'div' value. This will output a div with the 'lcp_catlist' CSS class (or one you pass as parameter with the class argument). The inner items (posts) will be displayed between p tags.<\/p><\/li>\n<li><p><strong>morelink<\/strong> - Include a \"more\" link to access the category archive for the category. The link is inserted after listing the posts. It receives a string of characters as a parameter which will be used as the text of the link. Example: [catlist id=38 morelink=\"Read more\"]<\/p><\/li>\n<\/ul>\n\n<h3>HTML &amp; CSS Customization<\/h3>\n\n<p>You can customize what HTML tags different elements will be sorrounded with and a CSS class for this element. The customizable elements are: author, catlink (category link), comments, date, excerpt, morelink (\"Read More\" link), thumbnail and title (post title).<\/p>\n\n<p>The parameters are:\n    autor_tag, author_class, catlink_tag, catlink_class, comments_tag, comments_class, date_tag, date_class, \n    excerpt_tag, excerpt_class, morelink_class, thumbnail_class, title_tag, title_class<\/p>\n\n<p>So for example, let's say you want to wrap the displayed comments count with the p tag and a \"lcp_comments\" class, you would do:\n    [catlist id=7 comments=yes comments_tag=p comments_class=lcp_comments]\nThis would produce the following code:<\/p>\n\n<p> (3)<\/p>\n\n<p>Or you just want to style the displayed date, you could wrap it with a span tag:\n    [catlist name=blog date=yes date_tag=span date_class=lcp_date]\nThis would produce the following code:\n    March 21, 2011<\/p>\n\n<h3>Template System<\/h3>\n\n<p>Templates for the List members posts with lightbox are searched for in your WordPress theme's folder. You should create a folder named List members posts with lightbox under 'wp-content\/themes\/your-theme-folder'. Template files are .php files.<\/p>\n\n<p>You can use the included template as an example to start. It's in the plugin's template folder under the name default.php. To use a template, use this code:\n[catlist id=1 template=templatename]\nIf the template file were templatename.php.<\/p>\n\n<p>You can have as many different templates as you want, and use them in different pages and posts. The template code is pretty well documented, so if you're a bit familiar with HTML and PHP, you'll have no problems creating your own template. I'm planning on reworking the template system in order to have a really user friendly way to create templates.<\/p>","raw_excerpt":"List members posts with lightbox allows you to list posts (with featured image) from a category into a post\/page using the [catlist] shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=45794"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/opensourcetech"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45794"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45794"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45794"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45794"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45794"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}