Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Eine Breadcrumb-Navigation ohne Plugin erstellen

<?php
// Ab hier kopieren
function ah_the_breadcrumb() {
                echo '<ul id="crumbs">';
        if (!is_home()) {
                echo '<li><a href="';
                echo get_option('home');
                echo '">';
                echo 'Home';
                echo "</a></li>";
                if (is_category() || is_single()) {
                        echo '<li>';
                        the_category(' </li><li> ');
                        if (is_single()) {
                                echo "</li><li>";
                                the_title();
                                echo '</li>';
                        }
                } elseif (is_page()) {
                        echo '<li>';
                        echo the_title();
                        echo '</li>';
                }
        }
        elseif (is_tag()) {single_tag_title();}
        elseif (is_day()) {echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>';}
        elseif (is_month()) {echo"<li>Archive for "; the_time('F, Y'); echo'</li>';}
        elseif (is_year()) {echo"<li>Archive for "; the_time('Y'); echo'</li>';}
        elseif (is_author()) {echo"<li>Author Archive"; echo'</li>';}
        elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li>Blog Archives"; echo'</li>';}
        elseif (is_search()) {echo"<li>Search Results"; echo'</li>';}
        echo '</ul>';
}
Comment

PREVIOUS NEXT
Code Example
Php :: Writing into the database with one click laravel 
Php :: validations php or js 
Php :: php accounting ledger 
Php :: laravel faker realtext 
Php :: Augmenter la dimension des fichiers WP 
Php :: Settings pages are created like this: 
Php :: Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel 
Php :: Read the index and hashid of the last block in the blockchain 
Php :: create associative array php by key value site:stackoverflow.com 
Php :: cách nhúng php vào html 
Php :: Wonder Gallery WordPress plugin php code to display a gallery 
Php :: docker commant 
Php :: $usr= $_POST["user"]; $pswd= $_POST["pass"]; 
Php :: Laravel Cache store [none] is not defined. 
Php :: symmetric decryption in php 
Php :: livewire component lost data 
Php :: laravel app not loading on server 
Php :: php read textarea line by line 
Php :: how to change directory in command processor 
Php :: bin/cake cache clear_all 
Php :: how to fetch data from database in php and display in pdf 
Php :: BelongsToMany relations pivot fields are null in Livewire refresh 
Php :: laravel class is not recognized in tinker 
Php :: php kurzschreibweise if 
Php :: navigate json decode php 
Php :: how can we manage category and product in laravek 
Php :: php phalcon 
Php :: use varable on all site pages laravel 
Php :: laravel model retrieve 
Php :: Combining AND, OR and NOT 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =