이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WP Display Header

설명

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.

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.
If no specific header is specified for a post it will fall back to the default selection.
There is no change of template files necessary as this plugin hooks in the existing WordPress API to unfold its magic.

Translations

I will be more than happy to update the plugin with new locales, as soon as I receive them!
Currently available in:

  • 영어
  • Deutsch
  • Italiano

Thanks to Erik T. for the idea to this plugin!

스크린샷

  • The meta box in the main column.
  • The meta box in the side column.

설치

  1. Download WP Display Header.
  2. Unzip the folder into the /wp-content/plugins/ directory
  3. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.

FAQ

What do I need in the `header.php` file to make the plugin work seamlessly?

To make it work in your header.php file all you need is a header_image() call like so:

<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />

See TwentyTwelve’s header.php for reference.

Plugin Filter Hooks

wpdh_show_default_header (bool)

Whether to show the default header (true) or to look for a specifically selected header for the current request.

wpdh_get_header_posts (array)

All attachments with the meta key _header_image. An array with the query vars.

wpdh_get_headers (array)

The array with all registered headers.

wpdh_get_active_post_header (string)

The url to the currently active header image.

후기

2019년 3월 23일
On my site I like to show a different hero graphic on each page, reflecting the specific contents of that page. The theme I'm using doesn't allow me to choose different header images. It uses the same on all pages. I tried a lot of plugins but this one was the only one that truly did the job. I found a couple of issues eg a header image is available for selection but when I select it, the page shows the default header instead. I was able to "fix" these issues but deleting the header images and re-uploading them. Would love to see an option to randomly pick headers based on categories. Eg, I'd like one page to display a header picked from "Category A" and another page show a header from "Category B", with the headers randomly picked from each respective category when pages are loaded.
2019년 1월 19일
WP Display Header works with the standard header_image(); system. As of 5.0.3, UPLOADING header images seems a bit inconsistent, as it does not seem you can do that while editing a page, but otherwise works well.
2018년 4월 23일
I've looked through lots of postings and articles to find a way to have custom headers and this plugin does just that. I'm using WP 4.9.5 and theme Twenty Seventeen and no problems. Thanks.
2017년 10월 27일
Initially, I thought this was yet another plugin featured in the plugin directory for WordPress.com doesn't actually work there. As it turns out, it works perfectly but you have to edit your pages through the legacy wp-admin console, not the main editor. It works great - you just select "none" for the header image and voila!
모든 28 평가 읽기

기여자 & 개발자

“WP Display Header”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“WP Display Header”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “WP Display Header”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

6

  • Fixed a bug where srcset information for header images overrode custom header selections.

5

  • Maintenance release.
  • Updated code to adhere to WordPress Coding Standards.
  • Tested for WordPress 5.0.

4

  • Fixed a bug where styles were not enqueued correctly in wp-admin.
  • Now correctly displays the selection for header images on term edit pages again.
  • Tested for WordPress 4.6.0.

3

  • Maintenance release.
  • Some minor code cleanups.
  • Tested for WordPress 4.4.0.

2.2.0

  • Maintenance release.
  • Some minor code cleanups.
  • Tested for WordPress 4.0.

2.1.0

  • Added an option to not display a header at all.
  • Updated utility class.
  • Tested for WordPress 3.6.

2.0.1

  • Fixed a bug, where the fallback to the default header did not work. Props carloscorrela.

2.0.0

  • IMPORTANT: Version 2.0.0 breaks compatibility with WordPress versions prior to 3.2!
  • Added the header selection field to Taxonomy and Author Edit screens.
  • Fixed a minor bug for themes that have no header images registered.

1.5.3

  • Improved user experience when current theme does not support custom headers, on activation of the plugin.
  • Deprecated settings functions for WP Save Custom Header in preparation for overhaul in v2.0.0.
  • Updated utility class.

1.5.2

  • Fixed a bug, where a selected header wouldn’t override the default selection on posts pages.

1.5.1

  • Specific headers can now be reverted by selecting the default header.

1.5

  • Adjusted meta box layout to WordPress core.
  • Transfered CSS in external file.
  • Updated FAQ section. Props Brian.
  • Tested for WordPress 3.3.1.

1.4

  • Added support for WordPress 3.2 core header uploads.

1.3

  • Tested for WordPress 3.2-beta
  • Fixed a minor bug where a PHP warning was issued in the edit-post-screen, when there are no header images registered.

1.2.1

  • WordPress Plugin Repository update bug.

1.2

  • Tested for WordPress 3.1.2.
  • Now a custom folder name can be specified. See: Settings > Media.
  • Added Italian translation. Props Pietro Rossi.

1.1

1.0

  • 초기 릴리즈