Help : Featured Content Gallery displaying on Single post page

Discussion in 'CSS' started by LordOfTheRing, Nov 6, 2008.

  1. #1
    I am newbie to wordpress particular , not having much knowledge about CSS and PHP.

    I have installed Revolution Mag theme for my domain. But i am facing very strange problem , 'Featured Content Gallery' which is a wordpress plugin is installed display on home page , but due to some problem it is displaying on single post page also , any one can help me why this problem is coming.

    I am using wordpress 2.3.3

    This is the screenshot of my problem
    http://i199.photobucket.com/albums/aa108/funtosh2/problem.jpg
    Code (markup):
    p.s : i posted here as i find most suitable ( its not html issue so i post it here ) sorry if wrong section :)
     
    LordOfTheRing, Nov 6, 2008 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So you don't want it to display on a single post page altogether? Open up single.php inside your theme folder and you should find some code related to it inside there and just get rid of it.
     
    wd_2k6, Nov 6, 2008 IP
  3. jarret

    jarret Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    From the picture it looks as if the plugin is showing up under your sidebar.php file so you will need to create a php if statement to show it only on the homepage. That would look something like....

    <?php if(is_single()) {
    code goes here
    } else {
    show plugin here
    }
    ?>

    Something along those lines...kind of hard to know exactly what needs to be done without seeing the code.
     
    jarret, Nov 6, 2008 IP
  4. LordOfTheRing

    LordOfTheRing Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    Thanks guys , problem is solved
     
    LordOfTheRing, Nov 8, 2008 IP