{"id":12688,"date":"2011-03-28T21:59:42","date_gmt":"2011-03-28T21:59:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-display-header\/"},"modified":"2023-10-28T22:52:36","modified_gmt":"2023-10-28T22:52:36","slug":"wp-display-header","status":"publish","type":"plugin","link":"https:\/\/mr.wordpress.org\/plugins\/wp-display-header\/","author":8772187,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"7","stable_tag":"7","tested":"6.4.8","requires":"3.2","requires_php":"","requires_plugins":null,"header_name":"WP Display Header","header_author":"Konstantin Obenland","header_description":"","assets_banners_color":"7f969c","last_updated":"2023-10-28 22:52:36","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=MWUA92KA2TL6Q","header_plugin_uri":"http:\/\/en.wp.obenland.it\/wp-display-header\/?utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-display-header","header_author_uri":"http:\/\/en.wp.obenland.it\/?utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-display-header","rating":4.4,"author_block_rating":0,"active_installs":7000,"downloads":238961,"num_ratings":27,"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":"kobenland","date":"2012-05-08 18:38:26"},"2.0.1":{"tag":"2.0.1","author":"kobenland","date":"2012-05-09 16:49:27"},"2.1.0":{"tag":"2.1.0","author":"kobenland","date":"2013-04-03 07:08:22"},"2.2.0":{"tag":"2.2.0","author":"obenland","date":"2014-10-13 21:33:57"},"3":{"tag":"3","author":"obenland","date":"2015-10-05 01:26:52"},"4":{"tag":"4","author":"obenland","date":"2016-07-22 15:39:55"},"5":{"tag":"5","author":"obenland","date":"2017-12-20 17:00:59"},"6":{"tag":"6","author":"obenland","date":"2020-11-23 22:19:31"},"7":{"tag":"7","author":"obenland","date":"2023-10-28 22:52:36"}},"upgrade_notice":{"":"<p>Maintenance update<\/p>"},"ratings":{"1":2,"2":1,"3":2,"4":1,"5":22},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2820999,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":null,"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2820999,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2820999,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The meta box in the main column.","2":"The meta box in the side column."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,3244,68495,1431,34303],"plugin_category":[50,52],"plugin_contributors":[77566],"plugin_business_model":[],"class_list":["post-12688","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-custom-header","plugin_tags-custom-header-image","plugin_tags-header","plugin_tags-header-image","plugin_category-media","plugin_category-performance","plugin_contributors-obenland","plugin_committers-obenland"],"banners":{"banner":"https:\/\/ps.w.org\/wp-display-header\/assets\/banner-772x250.jpg?rev=2820999","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-display-header_7f969c.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-display-header\/assets\/screenshot-1.png?rev=2820999","caption":"The meta box in the main column."},{"src":"https:\/\/ps.w.org\/wp-display-header\/assets\/screenshot-2.png?rev=2820999","caption":"The meta box in the side column."}],"raw_content":"<!--section=description-->\n<p>This plugin lets you specify a header image for each post, page, custom post type or archive page individually, from your default headers and custom headers.<\/p>\n\n<p>It adds a meta box in the post edit screens with the header selection and a settings field in the edit profile and each taxonomy edit screen.\nIf no specific header is specified for a post it will fall back to the default selection.\nThere is no change of template files necessary as this plugin hooks in the existing WordPress API to unfold its magic.<\/p>\n\n<p>Thanks to Erik T. for the idea to this plugin!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download WP Display Header.<\/li>\n<li>Unzip the folder into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20do%20i%20need%20in%20the%20%60header.php%60%20file%20to%20make%20the%20plugin%20work%20seamlessly%3F'><h3>What do I need in the `header.php` file to make the plugin work seamlessly?<\/h3><\/dt>\n<dd><p>To make it work in your <code>header.php<\/code> file all you need is a <code>header_image()<\/code> call like so:<\/p>\n\n<pre><code>&lt;img src=\"&lt;?php header_image(); ?&gt;\" width=\"&lt;?php echo get_custom_header()-&gt;width; ?&gt;\" height=\"&lt;?php echo get_custom_header()-&gt;height; ?&gt;\" alt=\"\" \/&gt;\n<\/code><\/pre>\n\n<p>See TwentyTwelve's <code>header.php<\/code> for reference.<\/p><\/dd>\n<dt id='plugin%20filter%20hooks'><h3>Plugin Filter Hooks<\/h3><\/dt>\n<dd><p><strong>wpdh_show_default_header<\/strong> (<em>bool<\/em>)<\/p>\n\n<blockquote>\n  <p>Whether to show the default header (true) or to look for a specifically selected header for the current request.<\/p>\n<\/blockquote>\n\n<p><strong>wpdh_get_header_posts<\/strong> (<em>array<\/em>)<\/p>\n\n<blockquote>\n  <p>All attachments with the meta key <code>_header_image<\/code>. An array with the query vars.<\/p>\n<\/blockquote>\n\n<p><strong>wpdh_get_headers<\/strong> (<em>array<\/em>)<\/p>\n\n<blockquote>\n  <p>The array with all registered headers.<\/p>\n<\/blockquote>\n\n<p><strong>wpdh_get_active_post_header<\/strong> (<em>string<\/em>)<\/p>\n\n<blockquote>\n  <p>The url to the currently active header image.<\/p>\n<\/blockquote><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>7<\/h4>\n\n<ul>\n<li>Fixes a bug where posts pages would not load their assigned header image. See https:\/\/github.com\/obenland\/wp-display-header\/issues\/3<\/li>\n<li>Updated utility class.<\/li>\n<li>Tested for WordPress 6.1.<\/li>\n<\/ul>\n\n<h4>6<\/h4>\n\n<ul>\n<li>Fixed a bug where srcset information for header images overrode custom header selections.<\/li>\n<\/ul>\n\n<h4>5<\/h4>\n\n<ul>\n<li>Maintenance release.<\/li>\n<li>Updated code to adhere to WordPress Coding Standards.<\/li>\n<li>Tested for WordPress 5.0.<\/li>\n<\/ul>\n\n<h4>4<\/h4>\n\n<ul>\n<li>Fixed a bug where styles were not enqueued correctly in wp-admin.<\/li>\n<li>Now correctly displays the selection for header images on term edit pages again.<\/li>\n<li>Tested for WordPress 4.6.0.<\/li>\n<\/ul>\n\n<h4>3<\/h4>\n\n<ul>\n<li>Maintenance release.<\/li>\n<li>Some minor code cleanups.<\/li>\n<li>Tested for WordPress 4.4.0.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Maintenance release.<\/li>\n<li>Some minor code cleanups.<\/li>\n<li>Tested for WordPress 4.0.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Added an option to not display a header at all.<\/li>\n<li>Updated utility class.<\/li>\n<li>Tested for WordPress 3.6.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Fixed a bug, where the fallback to the default header did not work. Props carloscorrela.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li><strong>IMPORTANT<\/strong>: Version 2.0.0 breaks compatibility with WordPress versions <strong>prior<\/strong> to 3.2!<\/li>\n<li>Added the header selection field to Taxonomy and Author Edit screens.<\/li>\n<li>Fixed a minor bug for themes that have no header images registered.<\/li>\n<\/ul>\n\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>Improved user experience when current theme does not support custom headers, on activation of the plugin.<\/li>\n<li>Deprecated settings functions for WP Save Custom Header in preparation for overhaul in v2.0.0.<\/li>\n<li>Updated utility class.<\/li>\n<\/ul>\n\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Fixed a bug, where a selected header wouldn't override the default selection on posts pages.<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Specific headers can now be reverted by selecting the default header.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Adjusted meta box layout to WordPress core.<\/li>\n<li>Transfered CSS in external file.<\/li>\n<li>Updated FAQ section. Props Brian.<\/li>\n<li>Tested for WordPress 3.3.1.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added support for WordPress 3.2 core header uploads.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Tested for WordPress 3.2-beta<\/li>\n<li>Fixed a minor bug where a PHP warning was issued in the edit-post-screen, when there are no header images registered.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>WordPress Plugin Repository update bug.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Tested for WordPress 3.1.2.<\/li>\n<li>Now a custom folder name can be specified. See: Settings &gt; Media.<\/li>\n<li>Added Italian translation. Props Pietro Rossi.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Tested for WordPress 3.1.1<\/li>\n<li>Adopted <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-save-custom-header\/\" title=\"This plugin lets you save and reuse your uploaded header images.\">WP Save Custom Header<\/a> multisite capability.<\/li>\n<li>Made HTML W3C valid.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Select a specific header or random header image for each content item or archive page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12688"}],"author":[{"embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/obenland"}],"wp:attachment":[{"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12688"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12688"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12688"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12688"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12688"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}