开发者 | obenland |
---|---|
更新时间 | 2023年10月29日 06:52 |
捐献地址: | 去捐款 |
PHP版本: | 3.2 及以上 |
WordPress版本: | 6.4 |
/wp-content/plugins/
directoryheader.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.
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.