Results 1 to 7 of 7

Thread: Something wrong with is_home in 3.1.6 ?

  1. #1
    Thread Starter
    malioglasi's Avatar
    Join Date
    Jul 2011
    Location
    Serbia
    Posts
    130
    Thanks
    19
    Thanked 13 Times in 10 Posts

    Something wrong with is_home in 3.1.6 ?

    I use is_home to make some changes in my design only on home page.

    It was working in 3.1.5 but now in 3.1.6 I just don't understand what could be wrong, its just doing nothing. This is how I was removing price tag in 3.1.5

    Code:
    <?php
                        if ( is_home() ) {
                             // This is a homepage
                        } else { ?>
                             <div class="price-wrap">
    
            <span class="tag-head">&nbsp;</span><p class="post-price"><?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></p>
    
        </div>
                        <?php }
    ?>
    this was working in 3.1.5 but now in 3.1.6 it doesn't.

    I tried the simplest thing like

    Code:
    <div class="price-wrap <?php if (is_home) echo "test" ?>" >
    but nothing! and if I try

    Code:
    <div class="price-wrap test">
    this test shows in source code, so my FTP connection is fine and changes are made to the file on server.

    Any ideas why is_home is not working for me?

    Just to note, I have the same site on 3.1.5 where is_home is working and a new test version where I'm testing new releases before I made changes to my main site. They are both on the same web hosting, just the subdomain of the main domain.

  2. #2
    areis's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    129
    Thanks
    17
    Thanked 16 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Free classifieds site using Classipress in Portuguese - Boas-oportunidades;
    House rentals in Portugal - Arrenda PT; House rentals in Brazil - Arrenda BR.

  3. #3
    Thread Starter
    malioglasi's Avatar
    Join Date
    Jul 2011
    Location
    Serbia
    Posts
    130
    Thanks
    19
    Thanked 13 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    malioglasi's Avatar
    Join Date
    Jul 2011
    Location
    Serbia
    Posts
    130
    Thanks
    19
    Thanked 13 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    malioglasi's Avatar
    Join Date
    Jul 2011
    Location
    Serbia
    Posts
    130
    Thanks
    19
    Thanked 13 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    malioglasi's Avatar
    Join Date
    Jul 2011
    Location
    Serbia
    Posts
    130
    Thanks
    19
    Thanked 13 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,982
    Thanks
    170
    Thanked 3,408 Times in 3,279 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is something wrong with is_home in 3.1.6 ?
    By malioglasi in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 1st, 2012, 06:31 AM
  2. [SOLVED] Is this a bug or I'm wrong somewhere?
    By verdelino in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: January 20th, 2011, 11:04 AM
  3. WHAT IS WRONG!? no ads
    By spymare in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: December 31st, 2010, 02:33 PM