{"id":119562,"date":"2020-04-07T16:18:17","date_gmt":"2020-04-07T16:18:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/vi-include-post-by\/"},"modified":"2020-07-27T20:52:03","modified_gmt":"2020-07-27T20:52:03","slug":"vi-include-post-by","status":"publish","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/vi-include-post-by\/","author":14204932,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4.200706","stable_tag":"trunk","tested":"5.4.19","requires":"4.0","requires_php":"5.2.4","requires_plugins":"","header_name":"VI: Include Post By","header_author":"Joseph Neathawk","header_description":"A collection of shortcodes to include posts inside other posts, etc","assets_banners_color":"","last_updated":"2020-07-27 20:52:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/neathawk.com","header_author_uri":"http:\/\/Neathawk.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1040,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2218,10256,86,80,2277],"plugin_category":[43],"plugin_contributors":[179254],"plugin_business_model":[],"class_list":["post-119562","plugin","type-plugin","status-publish","hentry","plugin_tags-options","plugin_tags-params","plugin_tags-post","plugin_tags-shortcode","plugin_tags-vars","plugin_category-customization","plugin_contributors-knighthawk","plugin_committers-knighthawk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/vi-include-post-by.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>VI: Include Post By - provides your pages and posts with shortcodes allowing you to display other pages and posts inside them either by their ID or by post category. Options to display title,meta,content,thumbnail,excerpt,footer.<\/p>\n\n<h3>Coming Soon<\/h3>\n\n<p>More display options.\nTaxonomy and post type agnostic\nsetable default thumbnail\ngrab the actual small thumbnail image for srcset<\/p>\n\n<h3>Instructions<\/h3>\n\n<p>Shortcode for including a single post by its ID<\/p>\n\n<pre><code>[include-post-by-id\n id=\"123\"\n link=\"true\"\n moretext=\"Continue Reading\"\n card=\"false\"\n display=\"title,meta,thumbnail,content,excerpt,more,footer,all\"\n display_header=\"title,meta,thumbnail,content,excerpt,more,footer,all\"\n display_body=\"title,meta,thumbnail,content,excerpt,more,footer,all\"\n display_footer=\"title,meta,thumbnail,content,excerpt,more,footer,all\"\n image_size=\"thumbnail,medium,large,full,custom-image-size\"\n class_inner=\"custom-class-name\"\n class_header=\"custom-class-name\"\n class_body=\"custom-class-name\"\n class_footer=\"custom-class-name\"\n class_thumbnail=\"custom-class-name\"\n]\n<\/code><\/pre>\n\n<ul>\n<li>id = post to be shown<\/li>\n<li>link = whether the title\/thubmnail are links to the post<\/li>\n<li>moretext = edit the text of the read-more link<\/li>\n<li>card = will set class names to bootstrap cards, no further class customization is required<\/li>\n<li>display[x] = display options as a CSV, order counts<\/li>\n<li>class[x] = a custom class name that will be added to each container element<\/li>\n<\/ul>\n\n<p>Shortcode for including single\/multiple posts by their category.\nEvery option required or used in the include-post-by-id will also pass through here.\nThis function will query the DB and then call include-post-by-id once for each resulting post.\nShown here are only the options which are unique to this function.<\/p>\n\n<pre><code>[include-post-by-cat\n cat=\"123\"\n order=\"DESC\"\n orderby=\"date\"\n paginate=true\n perpage=\"5\"\n offset=\"0\"\n class_container=\"custom-class-name\"\n]\n<\/code><\/pre>\n\n<ul>\n<li>cat = category to be shown<\/li>\n<li>order = sort order<\/li>\n<li>orderby = what to sort by<\/li>\n<li>paginate = true\/false<\/li>\n<li>perpage = items per page. -1 = all<\/li>\n<li>offset = how many posts to skip, useful if you are combining multiple includes<\/li>\n<li>class_container = custom-class-name used in the wrapper element<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<p><em>0.4.200706<\/em>\n* update: aspect-ratio to use jQuery for simpler WP usage<\/p>\n\n<p><em>0.4.200611<\/em>\n* added: support for a choice in thumbnail size<\/p>\n\n<p><em>0.4.200520<\/em>\n* Update: display and class\n* added: card = true for auto bootstrap class names\n* added: display_header, display_body, display_footer. each internal element can be targeted to a header, body, and footer\n* added: class for the header,body,footer, and thumbnail\n* changed: thumbnail is now displayed as a background image in a container with styling set to a given aspect ratio.\n* todo: may add suport for classic thumbnails<\/p>\n\n<p><em>0.4.200417<\/em>\n* Update: transients\n* Only uses a single transient, and lookup. Offset is processed internally rather than putting the weight on a DB query.\n* Update: paginate\n* Page numbers and \"...\" now work properly under all tested circumstances.\n* re-write was needed after the transient\/offset changes.<\/p>\n\n<p><em>0.4.200411<\/em>\n* Fixed: offset now works as expected.\n* Was previously only working for pageination, it now works with both pageination AND a starting offset.<\/p>\n\n<p><em>0.4.200403<\/em>\n* Updated Class names<\/p>\n\n<p><em>0.3.191125<\/em>\n* Fixing the 'thumbnail' and 'more' functions<\/p>\n\n<p><em>0.3.191113<\/em>\n* Added the custom class entry field that will place a class name in the wrapper element<\/p>\n\n<p><em>0.3.191007<\/em>\n* added the baility for the display input field to actually cause the output to be in that order<\/p>\n\n<p><em>0.2.181219<\/em>\n* fixed bug in include-post-by-id where display data was being cached between multiple executions<\/p>\n\n<p><em>0.2.181214<\/em>\n* tested and functional<\/p>\n\n<p><em>0.1.181213<\/em>\n* self contained code, not reliant on functions from outside WP core<\/p>\n\n<p><em>0.1.181212<\/em>\n* FPL<\/p>","raw_excerpt":"Shortcodes allowing you to display posts inside other posts\/pages","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/119562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=119562"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/knighthawk"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=119562"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=119562"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=119562"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=119562"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=119562"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=119562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}