Stripos not work? Visibility settings not working as wanted
-
Hi – I am trying to get something in stripos to work
A basic version of this code is
<?php if (stripos($_SERVER['REQUEST_URI'],'/dj-equipment/') !== false) { echo 'DJ'; } elseif (stripos($_SERVER['REQUEST_URI'],'/music/' !== false) { echo 'Music'; } ELSE { echo 'Other'; }?>
I have tried replacing the request_uri with a curpage function too.
I wouldn’t have to do this but for some reason when I select category or tags for certain things to appear under
For some reason when I select the visibility settings for a certain image to appear under category and tag X… it appears on the category or tag pages, but not the actual blog post.
For example: https://www.oddduckreviews.com/reviews/music/dj-equipment/numark-stealth-dj-console/
the images on the right do not load.
but here on the category: https://www.oddduckreviews.com/category/reviews/music/dj-equipment/
They do.
- The topic ‘Stripos not work? Visibility settings not working as wanted’ is closed to new replies.