📜  Eine Breadcrumb-Navigation ohne Plugin erstellen - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:03             🧑  作者: Mango

代码示例1
';
        if (!is_home()) {
                echo '
  • '; echo 'Home'; echo "
  • "; if (is_category() || is_single()) { echo '
  • '; the_category('
  • '); if (is_single()) { echo "
  • "; the_title(); echo '
  • '; } } elseif (is_page()) { echo '
  • '; echo the_title(); echo '
  • '; } } elseif (is_tag()) {single_tag_title();} elseif (is_day()) {echo"
  • Archive for "; the_time('F jS, Y'); echo'
  • ';} elseif (is_month()) {echo"
  • Archive for "; the_time('F, Y'); echo'
  • ';} elseif (is_year()) {echo"
  • Archive for "; the_time('Y'); echo'
  • ';} elseif (is_author()) {echo"
  • Author Archive"; echo'
  • ';} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "
  • Blog Archives"; echo'
  • ';} elseif (is_search()) {echo"
  • Search Results"; echo'
  • ';} echo ''; }