Hide Images
-
Hey guys,
I have a custom post type which I pull (twice) using (two) custom templates. Obviously each template is styled and renders the content differently.
I want one on the other image to render the content with image and the other on the other template to only render clean content. I know I can use:
preg_replace("/<img[^>]+\>/i", "", $content);
But how do I get to tell it to only apply that on specific templates only using functions.php?
Thank you in advance guys.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide Images’ is closed to new replies.