• Hallo,
    I activated code snippets plugin with following php to remove word “category”

    function wpspecial_rimozione_prefisso_categoria( $title ) {
    if ( is_category() ) {
    $title = single_cat_title( ”, false );
    }
    return $title;
    }
    add_filter( ‘get_the_archive_title’, ‘wpspecial_rimozione_prefisso_categoria’ );

    It doesn’t work.
    Could you help us?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    There doesn’t seem to be anything wrong with the code – it’s working fine for me.

    How are you testing the output of the get_the_archive_title() function?

    Thread Starter pinolope

    (@pinolope)

    What do you mean for “testing the output of the get_the_archive_title() function?”

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code snippets doesn’t work’ is closed to new replies.