function my_doc_title($title, $separator){
if(is_author()) // <- replace this with your custom page; maybe is_page_template('myprofile.php') ?
$title = get_the_author_meta('display_name', get_query_var('author')).$separator.get_bloginfo('name');
return $title;
}
add_filter('wp_title', 'my_doc_title', 10, 2);
(functions.php)
Related Posts:
- How to *remove* a parent theme page template from a child theme?
- How to Change 404 page title
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- page_template toggle between 2 templates + 2 permalinks for same post
- How do I deque the default stylesheet?
- Woocommerce Product page edit
- For custom templates, is it better to use `template_include` or `type_template`?
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- need help with a user-specific custom page template
- Prepopulating a specific page template with HTML/CSS
- custom meta box for page default template
- List top 5 authors with most posts
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- How to create custom search page
- WordPress archive index page
- How to create a custom WordPress front page
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- How To make Custom page of every Category
- Remove Sidebars from page
- Product page not found if product data is set Appointment Service
- Page with some post value id showing page not found
- Why does a custom php code inside a custom template not get executed?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Create page when a new site in multisite network is created?
- Custom stylesheet not loading
- Displaying Child Page’s Information
- Adding pages to the Admin panel
- Setting Custom WordPress “Posts page” AS “Front page”
- Page template with custom html fields inside a content
- Single page template
- use another theme for just one page
- Multiple WordPress sites with docker
- .maintenance and maintenance.php also in multisite install?
- how to redirect to a custom password retrieval page
- Is there a plugin to make attaching images easier?
- Custom category order with get_categories
- Pagination Help on Crazy Custom Authors Page
- Getting rid of the #038; when string replacing content
- Querying multiple WordPress custom fields with AND qualifier
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- How to build a child theme from a react-based parent theme?
- Convert an theme options page to use in customize.php also?
- Adding action to save_post, post needs to be saved twice for function to work
- The best way to write an FAQ page?
- 1 bit audio player
- Outputting posts from post id´s in variable
- Get Value from Column in Plugin Table [closed]
- The Best Way to always load the newest version of 3rd party code
- Theme licensing and permission on changing content [closed]
- Add ‘Creator’ User Meta when adding user
- Auto login after wordpress installation
- Using Fullscreenr with a wordpress blog – weird bug
- Determining What Content Gets Displayed
- Truncating varying lengths of information
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- Edit sticky header html – How to locate corresponding php file
- OrderBy multiple custom meta fields
- How to host 2 subdomains as lookalike destinations under one master domain?
- Track usernames with piwik [closed]
- Custom Login Process
- How could I verify whole WP directory before/after working with a freelancer? [closed]
- Modify files without losing customization after updates
- Woocommerce – Print Product’s Custom Field In Email
- Applying WP-cli Search & Replace to Static SQL Dump File
- Create a Page template selector page
- How Can I limit the visible part of the short-description on the Category page?
- Is it possible to rename a customizer control heading?
- Create Unique ID for user
- Custom Database Table and foreach
- Hook before user is created and make some custom validation
- How to add Custom Css within the Editor?
- How can Use custom input field in functions.php page?
- ACF unable to use user field
- Show products per page drop down
- Change HTML markup on blog post
- When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?
- Static Page, need Last and Next links at the bottom
- Client viewing before deployment
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- How to use a custom playlist template:
- Run a welcome tour after multisite creation?
- Multisite – Getting Meta query to select from wp_2 tables
- WordPress Inline Style missing
- Need to over ride a !important from the index file
- Make User Role a Filter
- Creating a search with tag variable also added for more detailed results
- Is there os native application for wordpress?
- Do i need to use PHP in customizer api?
- Add variable : 1 Week ago
- When is it OK to create a custom table for a plugin? [duplicate]
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
- Custom product sorting archive page