single_month_title() WP 1.0
Display or retrieve page title for post archive based on date.
Useful for when the template only needs to display the month and year, if either are available. The prefix does not automatically place a space between the prefix, so if there should be a space, the parameter value will need to have it at the end.
No Hooks.
Return
String/null. Title when retrieving.
Usage
single_month_title( $prefix, $display );
- $prefix(string)
- What to display before the title.
Default: '' - $display(true/false)
- Whether to display or retrieve title.
Default: true
Notes
- Global. WP_Locale. $wp_locale WordPress date and time locale object.
Changelog
Since 0.71 | Introduced. |
Code of single_month_title() single month title WP 5.6
Related Functions
From tag: title (of post page)
More from category: Other Theme Functions
- add_theme_support()
- bloginfo()
- body_class()
- current_theme_supports()
- get_custom_header_markup()
- get_custom_logo()
- get_header_image()
- get_header_image_tag()
- get_header_textcolor()
- get_header_video_url()
- get_page_templates()
- get_post_class()
- get_query_template()
- get_stylesheet()
- get_template()
- get_theme_mod()
- get_theme_mods()
- get_theme_root()
- has_custom_logo()
- has_header_image()
- has_header_video()
- is_child_theme()
- is_header_video_active()
- is_multi_author()
- post_class()
- register_nav_menu()
- register_nav_menus()
- register_theme_directory()
- remove_theme_mod()
- remove_theme_mods()
- remove_theme_support()
- search_theme_directories()
- set_theme_mod()
- the_custom_header_markup()
More from Template Tags: Posts, Pages, ...
- get_post_format()
- get_post_time()
- get_the_date()
- have_posts()
- in_the_loop()
- next_image_link()
- next_post_link()
- next_posts_link()
- post_password_required()
- posts_nav_link()