{"id":23368,"date":"2013-05-14T00:25:55","date_gmt":"2013-05-14T00:25:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-head-includes\/"},"modified":"2013-08-25T04:59:22","modified_gmt":"2013-08-25T04:59:22","slug":"post-head-includes","status":"publish","type":"plugin","link":"https:\/\/es-cr.wordpress.org\/plugins\/post-head-includes\/","author":12019301,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2.1","stable_tag":"trunk","tested":"3.5.2","requires":"","requires_php":"","requires_plugins":"","header_name":"Post Head Includes","header_author":"Rick Buczynski","header_description":"","assets_banners_color":"363843","last_updated":"2013-08-25 04:59:22","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=49Q7JW9AJHJMG","header_plugin_uri":"","header_author_uri":"richard.buczynski@gmail.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1867,"num_ratings":0,"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":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"712651","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":"712653","resolution":"1","location":"assets"},"screenshot-2.gif":{"filename":"screenshot-2.gif","revision":"712653","resolution":"2","location":"assets"},"screenshot-3.gif":{"filename":"screenshot-3.gif","revision":"712653","resolution":"3","location":"assets"},"screenshot-4.gif":{"filename":"screenshot-4.gif","revision":"712653","resolution":"4","location":"assets"}},"screenshots":{"1":"Easily add unlimited items to your post or page.","2":"You only need to configure a type and a source to get your includes properly loaded.","3":"For more advanced options, you can completely customize your scripts, adding localizations or initializer code.","4":"Tag your included stylesheets for properly CSS media types to add greater flexibility to your pages."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,229,50139,23026,21096],"plugin_category":[59],"plugin_contributors":[96639],"plugin_business_model":[],"class_list":["post-23368","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-javascript","plugin_tags-post-head-includes","plugin_tags-wp_enqueue_script","plugin_tags-wp_enqueue_style","plugin_category-utilities-and-tools","plugin_contributors-rbuczynski","plugin_committers-rbuczynski"],"banners":{"banner":"https:\/\/ps.w.org\/post-head-includes\/assets\/banner-772x250.jpg?rev=712651","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-head-includes_363843.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-head-includes\/assets\/screenshot-1.gif?rev=712653","caption":"Easily add unlimited items to your post or page."},{"src":"https:\/\/ps.w.org\/post-head-includes\/assets\/screenshot-2.gif?rev=712653","caption":"You only need to configure a type and a source to get your includes properly loaded."},{"src":"https:\/\/ps.w.org\/post-head-includes\/assets\/screenshot-3.gif?rev=712653","caption":"For more advanced options, you can completely customize your scripts, adding localizations or initializer code."},{"src":"https:\/\/ps.w.org\/post-head-includes\/assets\/screenshot-4.gif?rev=712653","caption":"Tag your included stylesheets for properly CSS media types to add greater flexibility to your pages."}],"raw_content":"<!--section=description-->\n<p>Easily add scripts and stylesheets per post. This is a great tool for developers creating custom pages for their clients, but also useful for the blogger who wants to separate inline CSS &amp; JS from their post content.<\/p>\n\n<p>This plugin provides an interface for wp_enqueue_script and wp_enqueue_style functions, so all of the functionality that a developer would find there is available in this plugin.<\/p>\n\n<p>However, script localization differs from wp_localize_script in that with this plugin you are allowed to input raw JavaScript code for localization, library initialization, and more.<\/p>\n\n<p>This plugin may also help to alleviate modern browser XSS detection from blocking potentially unsafe JavaScript.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload files to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create a new post or page<\/li>\n<li>Configure your post head includes in the meta box below the editor<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where are my scripts and stylesheets?<\/dt>\n<dd><p>They will be added to the HEAD area of the page or post.<\/p><\/dd>\n<dt>Can I have more than one script or stylesheet?<\/dt>\n<dd><p>Yes, you can add as many as you'd like or need.<\/p><\/dd>\n<dt>Can I add my scripts to the footer for faster loading?<\/dt>\n<dd><p>Yes, under the Advanced Options you can set <code>In Footer<\/code> to <code>true<\/code>.<\/p><\/dd>\n<dt>My included script needs to be initialized. How can I do this?<\/dt>\n<dd><p>Under <code>Advanced Options<\/code> you can add any custom JavaScript to the <code>Localization<\/code> text area. This will be added after your JS file.<\/p><\/dd>\n<dt>How to conditions work?<\/dt>\n<dd><p>When adding a condition, you need only to write the expression, and not the entire comment tag. For example, to load the item only for IE browsers at version 9, you would write <code>if IE 9<\/code>. Note: Adding a condition will force the item to be included at the end of the  element (after all other scripts and stylesheets). Therefore, specifying dependencies will have no effect.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>0.2.1 - Fixed inconsistent post ID management on save.\n0.2.0 - Added support for IE conditional tags; minor code cleanup.\n0.1.0 - First release.<\/p>","raw_excerpt":"Easily add scripts and stylesheets to the HEAD of your posts, keeping your HTML cleaner without inline scripts or styles.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23368"}],"author":[{"embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rbuczynski"}],"wp:attachment":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23368"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23368"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23368"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23368"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23368"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}