I wound up fixing it like this. All pages now work. But it looks …well …ugly.
<?php if (function_exists('is_tag') && is_tag()) {
single_tag_title('Tag Archive for "'); echo '" | ';
} elseif (is_archive()) {
wp_title(''); echo ' Archive | ';
} elseif (is_search()) {
echo 'Search for "'.esc_html($s).'" | ';
} elseif (!(is_404()) && is_single() ) {
wp_title(''); echo ' | ';
} elseif (is_404()) {
echo 'Not Found | ';
}
if ( is_front_page() ) {
bloginfo('name'); echo ' | '; bloginfo('description');
} elseif ( is_page() || is_home() ) {
wp_title(''); echo ' | '; bloginfo('name');
} else {
bloginfo('name');
}
if ($paged > 1) {
echo ' | page '. $paged;
} ?>
Related Posts:
- Change Genesis Tag from Page Template [closed]
- Removing title tags from each page
- Cannot update WordPress General Settings Site Title and Tagline
- Limitations when modifying wp_title with a filter
- Automated Footer information
- Theme support title tag – how to replace the default WP separator (with a filter)?
- When trying to set title, not sure how to edit it for different pages
- double page title [duplicate]
- Include title and content of one page in another page
- How can I change the title of the Home link in the navigation bar?
- TItle In Latest Post is not using H1 Tag [closed]
- How to add posts to custom menus?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- How to: Update live sites theme from version control repo via plugin or library? [closed]
- Adding items to page template dropdown on Page Edit Screen
- How to use logout function on custom menu link?
- Hide certain pages / posts on wp-admin, show custom filter
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Problem with registering menus – What to do when other solutions aren’t working?
- Front End Post Submit Form
- Page attribute template dropdown not displayed even the syntax is correct
- How to add a text widget during theme activation
- WordPress Theme customisation CSS
- Displaying wp menus by name without using theme locations
- Why does this loop only work on the homepage?
- Nesting Functions within Functions
- Theme check: Missing a text-domain
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- Do I really need the div class entry?
- How to determine if post has widget content?
- Custom Script Section Only Echoes Text
- Best way to start becoming a wordpress developer
- Why wp_head() function not loading style.css?
- WP Customize refresh problem
- Set multiple templates per post
- Place the page title into the short code
- Redirect Old .php URLs to New WordPress Page
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- Displaying recent post excerpts on static front page
- approach to pass additional parameter in post URL
- Which html elements should be styled in wordpress theme
- Custom form in theme template displaying internal server error upon submission
- WordPress Media Uploader in page template (On Front-end)
- Theme Customizer not loading JS for live preview
- Replace function in a child theme
- get_search_form() and aria_label
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Admin: sub menu doesnt display under apperance when activate my themes
- Get data from style.css file and from from users->your profile
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- How can I specify that an area of my theme contains widgets?
- How to dequeue css files?
- How to disable thumbnail filter for a specific template part or image size?
- Extract all shortcode data from post into loop variables?
- wp_nav_menu and its fallback
- Adding the_content() return warning count()
- Copying the theme style files and images to duplicate the website but with a difference
- reduce duplicate code in wordpress
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Ajax call returns 0 when add_action is inside a class in functions.php
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- header, stylesheet not being read
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- iPad WordPress theme?
- Adding link post format to theme and permalink to rss feed
- List categories of a post hierarchically?
- Custom Post Types set up, how do I style the main slug page?
- What are the permalinks options for “Category” base and removing it?
- Designing a custom archive.php inspired by the Autofocus theme
- Is a site with 1,500 pages, (1000 of which are E-Commerce Pages) Too Big to Migrate to WordPress?
- How to get blog-id of an MU site from functions.php
- How to register dynamic settings in WordPress Customizer?
- How to add audio files to audio player in WordPress custom theme?
- Does single webpage do not need navigation to create a slug in permalink?
- WordPress theme doesn’t read my translations from pt_BR.po file
- Data Validation & Sanitization for Big HTML Blocks
- How to get full native language instead of iso?
- Move the social media icons to the left of a WordPress nav menu for Soledad child Theme
- Two instances of the theme folder in the URL
- I want to change the author name
- Horizontal Navigation
- Trouble creating custom sanitization function when uploading video files
- How to store and retrieve the attachment alignment?
- Custom image size doesn’t work
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- The content not wrapped in paragraph tags with get_page_by_title()
- How to assign the default file at “Appearance > Editor”?
- Not Found when using activity stream as front page with BuddyPress
- How to determine if it is legal to remove credit link from theme?
- How to create sub-menu in “Allure Real Estate Theme for Placester”?
- Replacing static code in a template file with a sidebar and widgets?
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?