Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Remove prefix on category title

function prefix_category_title( $title ) {
 if ( is_category() ) {
  $title = single_cat_title( '', false );
 }
return $title;
}

add_filter( 'get_the_archive_title', 'prefix_category_title' );
Comment

remove prefix on category title

if ( is_category() ) {
        $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
    } elseif ( is_tag() ) {
        $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
    } elseif ( is_author() ) {
        $title = sprintf( __( 'Autor: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
    }

//directory: wp-includes
//file: general-template.php
//find function: get_the_archive_title() change:
Comment

PREVIOUS NEXT
Code Example
Php :: Change date format on view - laravel 
Php :: send mail using php mail function on localhost using xampp server 
Php :: wordpress debug mode 
Php :: laravel ecommerce 
Php :: picture on picture php 
Php :: lenght de un array php 
Php :: orwhere in wherehas laravel 
Php :: IlluminateContractsContainerBindingResolutionException 
Php :: drupal get node id from twig 
Php :: pdo mysqli error handling 
Php :: php function 
Php :: laravel use controller function in another controller 
Php :: php multiplication 
Php :: calculate age from date of birth in php 
Php :: laravel default encryption mode 
Php :: toastr in php 
Php :: php rearrange array 
Php :: laravel date diff 
Php :: php access key stdClass object 
Php :: laravel sharing image 
Php :: laravel 9 route group 
Php :: how to save multiple records in database using laravel 
Php :: laravel belongs to 
Php :: php library to convert html to amp 
Php :: laravel eloquent update multiple records 
Php :: PHP: How to remove specific element from an array? 
Php :: php check jwt token expired 
Php :: wordpress login user programmatically 
Php :: laravel collection except 
Php :: Laravel return empty relationship on model when condition is true 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =