• Hello all!

    All h1 headlines on my website have a text string appended to the end and I don’t want it to show up in wp show posts lists.

    For example, my titles are: “Apple Products – Hot news 2021”. I need the list titles to show only “Apple Products” and remove the text “- Hot news 2021”.

    Is there a way to do it with a php filter? Is there any other way to do it that I haven’t thought of?

    Thanks for the help.

    • This topic was modified 2 years, 10 months ago by danigomu.
    • This topic was modified 2 years, 10 months ago by danigomu.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to replace string in post title’ is closed to new replies.