WordPress.org

Forums

Enhanced Text Widget
Stripos not work? Visibility settings not working as wanted (1 post)

  1. The Odd Duck
    Member
    Posted 1 year ago #

    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: http://www.oddduckreviews.com/reviews/music/dj-equipment/numark-stealth-dj-console/

    the images on the right do not load.

    but here on the category: http://www.oddduckreviews.com/category/reviews/music/dj-equipment/

    They do.

    http://wordpress.org/plugins/enhanced-text-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic