Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi jayanta,

    You can use the get_the_archive_title filter to modify the taxonomy archive title.

    Something like that should work:

    add_filter( 'get_the_archive_title', 'custom_taxonomy_archive_title', 10, 2 );
    function custom_taxonomy_archive_title( $title )
    {
        if( is_tax( 'question-tag' ) ) {
            $title = __( 'Custom title' );
        }
        return $title;
    }

    Regards,
    Konstantinos

    Thread Starter Jayanta

    (@jkmwp)

    Hi Konstantinos,
    Thank you for the support. But it does not work.
    I have no knowledge of php, actions and filters, but I used the right taxonomy ‘question_tag’. Still it is in vain. Could you have a look here? https://englicist.com/questions/tag/where-the-mind-is-without-fear
    By the way, Yoast SEO plugin has a custom seo title feature, that too did not work. And, more importantly I need the title automatically add the tag name after a custom phrase “All questions on”.
    Thanks again.

    Moderator bcworkz

    (@bcworkz)

    If you can identify the portion of code currently responsible for the output you want to change and post it here, someone can probably help you. (Do not post large amounts of code here, use pastebin.com or similar) Without that, only those very knowledgeable of the plugin will be able to help you. I suspect such experts are rare here.

    If you are unable to get the needed information here, consider hiring an expert at jobs.wordpress.net.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modify Custom taxonomy page title’ is closed to new replies.