Linux 软件免费装
Banner图

WP Display Header

开发者 obenland
更新时间 2023年10月29日 06:52
捐献地址: 去捐款
PHP版本: 3.2 及以上
WordPress版本: 6.4

标签

posts plugin page image admin images header custom dynamic custom header fast header image custom header image display header display dynamic header

下载

2.1.0 5 2.0.0 2.0.1 2.2.0 3 4 6 7

详情介绍:

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. Thanks to Erik T. for the idea to this plugin!

安装:

  1. Download WP Display Header.
  2. Unzip the folder into the /wp-content/plugins/ directory
  3. 通过 WordPress 的“插件”菜单激活插件

屏幕截图:

  • The meta box in the side column.

升级注意事项:

Maintenance update

常见问题:

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.

更新日志:

7 6 5 4 3 2.2.0 2.1.0 2.0.1 2.0.0 1.5.3 1.5.2 1.5.1 1.5 1.4 1.3 1.2.1 1.2 1.1 1.0