WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Display page title without "Category: Transport" (1 post)

  1. Archie22is
    Member
    Posted 3 years ago #

    Hi guys,

    I have a small issue. I want to display the following titles on the WordPress instance as follows:
    - home page (title: My Directory)
    - on secondary pages (title: My Directory | Medical)

    I have the following rendering the header:
    <title><?php bloginfo('name'); ?><?php wp_title(' | ', 'echo', 'left'); ?></title>

    It works fine on the home page but on secondary pages it shows:
    - My Directory | Category: Medical

    How to I get rid of the "Category:"?

Topic Closed

This topic has been closed to new replies.

About this Topic