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

  1. Archie22is
    Posted 2 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