Php Customization - Wordpress help.

Discussion in 'Site & Server Administration' started by jinglepoint, Jul 20, 2009.

  1. #1
    I am trying to not display any posts on my blog to give a web site look.

    In order to do that I want to check, if the landing page is whether the home page or a category page or a post page.

    The only check I need to do is whether it is a 'home page' or not.
    So, I can do an 'if' condition and put the whole code in the index.php in that loop. But, I need to know which element has the page information. I checked around but couldn't get hold of that.

    Is there like a default page_id which might be equal to 1 or 0 or something else? Or do we have to just check with the url? If it is the url..then how do we check it.

    Please let me know if you need some more info ... on to what I'm trying to do here....

    Thanks
     
    jinglepoint, Jul 20, 2009 IP
  2. jinglepoint

    jinglepoint Banned

    Messages:
    155
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    isn't there anybody who tweaked wordpress php code....??? All I need to know is if there is something like

    isPage('home')

    then I could say
    if (isPage(home))
    {
    }
    else
    {
    }

    That's it. It is simple... but I donno whether such thing exists. Well I tried what I wrote :p it doesn't work. Wondering if there are any default codes or some changes.
     
    jinglepoint, Jul 21, 2009 IP
  3. jinglepoint

    jinglepoint Banned

    Messages:
    155
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Come on guys...isn't there any one willing to help? I know this is a very small thing... and that's the reason I don't want to hire anybody. I can code... but I just don't know that one thing. Will be helpful if some one atleast tried to help. :(
     
    jinglepoint, Jul 23, 2009 IP