Weird Title Glitch (3 posts)

  1. alanchrishughes
    Posted 3 years ago #

    It noticed this when creating conditional page titles, this is the current code that ultimately worked, but at first when I had the elseif for archives above the elseif for categories it would title all my category pages as archives for some reason. Strange.

    if ( is_single() ) { bloginfo('name'); echo ' - '; the_title();}
    elseif ( is_category() ) { bloginfo('name'); echo ' - Categories';}
    elseif ( is_page() ) { bloginfo('name'); echo ' - '; the_title();}
    elseif ( is_archive() ) { bloginfo('name'); echo ' - Archives';}
    else { bloginfo('name');}
  2. esmi
    Forum Moderator
    Posted 3 years ago #

    When any type of Archive page is being displayed. Category, Tag, Author and Date based pages are all types of Archives.


  3. alanchrishughes
    Posted 3 years ago #

    So it is an intentional glitch?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.