I tried explaining this but I don't think anyone understood,
I have a lot of titles which are all different, what I'm trying to do, is get rid of every "Lyrics" word in the title, and also, everything that appears before the "-" symbol.
I managed to do the lyrics part with istr_replace
<?php echo str_ireplace('lyrics', '', get_the_title()); ?>
How can I do the second part, what can I apply to the code to make it so?
Example of what I want it to do:
"random title - more random title lyrics" turns to "more random title"
The code applied, would delete the "random title - " on every single title on my website,