I have a site that reviews movies (DVD/Blu-ray, etc.)So every review in a particular category will have (Blu-ray) after the title, another will have DVD and so forth. i.e. Avengers: Infinity War (Blu-ray). I want to trim the format of the disc (Blu-ray) from the page title and I have this code, but it's not working. Wasn't sure what the issue was.
<span style="color: #ffffff">About <?php if (in_category('5447') ):?> <?php echo str_replace("(Blu-ray)"," ","<?php the_title(); ?>"); ?> </span> <?php endif; ?>
So, in essence, I can grab the title and it will read: Avengers: Infinity War (Blu-ray)
but I want it to read: Avengers: Infinity War