{"id":8302,"date":"2010-03-03T15:52:18","date_gmt":"2010-03-03T15:52:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/category-shortcode-w-generator\/"},"modified":"2010-10-15T12:54:37","modified_gmt":"2010-10-15T12:54:37","slug":"category-shortcode-w-generator","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/category-shortcode-w-generator\/","author":5207080,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3","stable_tag":"1.3","tested":"3.0.5","requires":"2.9.0","requires_php":"","requires_plugins":"","header_name":"Category Shortcode","header_author":"Robert Drake","header_description":"","assets_banners_color":"","last_updated":"2010-10-15 12:54:37","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/robertdrake.net","header_plugin_uri":"http:\/\/creeksidesystems.com","header_author_uri":"http:\/\/creeksidesystems.com","rating":4,"author_block_rating":0,"active_installs":300,"downloads":15916,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"2","5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[89,80],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-8302","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-shortcode","plugin_category-customization","plugin_committers-robertdrake"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/category-shortcode-w-generator.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin creates the [Category]] Shortcode.  The code takes 5 arguments:<\/p>\n\n<p>number: the number of posts to display.  0 equals the default number.  -1 equals the total available.<\/p>\n\n<p>Order: Ascending or Descending<\/p>\n\n<p>Display Method:  Full, Excerpt, Title<\/p>\n\n<p>Order By: Author, Date, Title, Modified, Parent, ID, Rand, None, or Comment Count.<\/p>\n\n<p>Category: this is the category id the category or categories that should be searched.  Multiple categories can be specified in a comma separated list.<\/p>\n\n<p>Example shortcode:<\/p>\n\n<p>[Category number='5' method='title' order='asc' id='11,45' orderby='comment_count']<\/p>\n\n<p>This will show 5 posts in ascending order of category 11 and 45 as arranged by comment_count and will display just the post titles.<\/p>\n\n<h3>Acknowledgements<\/h3>\n\n<p>A big thank you to g33kg0dd3ss for figuring out the 1.3 fix issue with the loop being broken.  She contributed the patch fix.<\/p>\n\n<h3>Future Additions?<\/h3>\n\n<ol>\n<li><p>Let plugin form allow for multiple category selections<\/p><\/li>\n<li><p>Let plugin form allow for multiple orderby methods<\/p><\/li>\n<li><p>In admin form restrict Number of posts to numbers only.<\/p><\/li>\n<li><p>In admin form setup a copy and paste script<\/p><\/li>\n<li><p>Accept a category name as a valid input<\/p><\/li>\n<li><p>Internationalization of the plugin<\/p><\/li>\n<li><p>Improve Formatting of Posts \/ Make formatting easier to edit.\/ Give user more control over formatting<\/p><\/li>\n<li><p>Allow attachments to come through<\/p><\/li>\n<li><p>Turn title links on or off.<\/p><\/li>\n<li><p>Allow comments in output<\/p><\/li>\n<li><p>Give user more control over the postformatting<\/p><\/li>\n<li><p>Add ability to modify thumbnail options through shortcode<\/p><\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>category_shortcode<\/code> directory to the <code>\/wp-content\/plugins<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place a valid [Category] code into a page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I create a valid category tag?<\/dt>\n<dd><p>A tool has been provided under the tools menu (Category Shortcode).  Use this generate valid tags.  Note: the tool cannot be used to generate a tag that displays multiple categories, but the shortcode does support this.<\/p><\/dd>\n<dt>How do I style the output?<\/dt>\n<dd><p>I've made div classes around the content data.  These classes are:\ncsc_post_thumbnail\ncsc_post_title\ncsc_post_date\ncsc_post_author\ncsc_post_category\ncsc_post_excerpt\ncsc_post_content\ncsc_break (a div between each post)<\/p>\n\n<p>There is also a style div around the entire post with a class of csc_post and then either csc_excerpt, full or title to help with styling.\ncsc_post\ncsc_excerpt\ncsc_title\ncsc_full<\/p>\n\n<p>An example style to modify the size of the title would be<\/p>\n\n<p>.csc_post_title {\n   font-size: 14px;\n}<\/p>\n\n<p>These properties can be set to  display: none; to hide the data.  More advanced styling could be done modifying the php in the section commented OUTPUT STYLING.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Plugin introduced into the wild.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed bug where content was floating to the top of the page<\/li>\n<li>Changed some formatting<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>NOTICE TO THOSE UPDATING -- this release may change how the visual output because html tags will no longer be stripped out of the full post or excerpt output.  Be aware.  <\/li>\n<li>The Get_Content function strips out tags.  I've tweaked the code so tags are retained in the excerpt and full output styles<\/li>\n<li>Added post thumbnail to the excerpt and title output with the csc_post_thumbnail css class<\/li>\n<li>Expanded explanation of CSS Styling<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Fixed an issue where the loop was being broken on the host page (where the shortcode lived) and showing the shortcode's last post instead.<\/li>\n<li>Placed a DIv around the entire posting to make styling easier.<\/li>\n<\/ul>","raw_excerpt":"Plugin adds shortcode capability for adding posts by category to a page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8302","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=8302"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/robertdrake"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8302"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8302"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8302"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8302"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8302"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}