• Resolved hupe13

    (@hupe13)


    I have a child theme of specia. I’m using the filter document_title_parts to customize the title of a page. If I call the_title() in the breadcrumb section I get the original title. Calling the_title() in the page section I get the changed title.
    Why I don’t get the changed title in breadcrumb section?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Where are you change the_title() in the breadcrumb section.

    Thread Starter hupe13

    (@hupe13)

    I made some test with title filters and functions. The filter document_title_parts is for customizing wp_get_document_title(). I need to use the filter the_title to customize the function the_title(). the_title() is used in the file sections/specia-breadcrumb.php. My second problem was, that sections/specia-breadcrumb.php isn’t in the loop, but the page section is.

    Both filters are defined in functions.php of a child theme.

    Now it works.

    Glad to know, you done it

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

The topic ‘the_title()’ is closed to new replies.