ThemeShaper Forums » Thematic

[closed]

Widget-logic problem with is_home() and blog versus static page

(14 posts)
  • Started 14 years ago by slongley013
  • Latest reply from colfelt
  • This topic is not resolved
  1. I know this is an issue with a plugin, widget logic, and not necessarily the issue of the theme, but, i wanted to post my problem, and see if maybe someone can offer insight as to whether the issue maybe be with themeshaper--or not! I have posted on the plugin forums for the issue, and no solution so far. Seems everyone whose had a similar problem to me has gotten a work-around, and yet, I'm still struggling.

    I know this has been asked before. I've read just about every topic thoroughly to see if maybe I missed something--and maybe I still am!

    Like so many people, I have decided to use a static front page which I have called Home (home being the slug as well) and for my Blog, I used blog as the slug.

    I know that is_home() is supposed to make sure that a particular widget, using the widget logic plugin, only shows up on the 'blog' or posts page, not on the static specified front page (as I understand it, that would be is_front_page() ). However, is_home() is not making that widget show up on my 'blog' page where I have my posts.

    This is what I put on my categories widget:

    is_single() || is_home() || is_archive() || is_category()

    So that it would show up on all the individual posts pages, in the archives pages and on all of the categories pages. All of those codes are working, but not is_home(). I have only one thought as to why that could be.

    I am using the thematic wordpress template. I noticed that it is not listed on the supported themes page, so, maybe someone has any insight into whether that could be the issue, and, what could be a work around, if that is the case.

    I apologize for the wall of text, but, I prefer to be thorough in explaining my issue. Thank you for any and all insight and help. And again, thank you for being doubly patient with me on the thematic forums, given that this isn't necessarily the right place for support on a third-party piece of software.

    Posted 14 years ago #
  2. I understand your woes, have you tried

    is_page('home')

    sometimes works for me

    Posted 14 years ago #
  3. no such luck unfortunately =(

    Posted 14 years ago #
  4. Have you tried is_front_page() ??

    .. take a look here: Conditional Tags « WordPress Codex

    Cheers,

    Chris

    Posted 14 years ago #
  5. i have tried that tag and tons of other tags that make sense (to me at least) and so far, no dice.

    however, widget logic does work using is_home() on the default theme, so, i figure it has to be something within thematic. i am not sure what though.

    Posted 14 years ago #
  6. .. will check it

    Cheers,

    Chris

    Posted 14 years ago #
  7. If you have the page set up to use a page template you can use is_page_template('pagename.php'). I have my homepage template as front-page.php (similar to the tutorial that Ian posted on the blog) and then I have the homepage created as a page in wordpress, using that php as a template.

    I've used that with widget logic (called it is_page_template('front-page.php')and it seems to identify the correct page.

    I don't think its exactly what you are looking for but maybe this can help? I spent a good few hours trying to sort through the static front page vs blog page myself and its still not perfect >.<

    Good luck and hope this helps!
    Michele

    Posted 14 years ago #
  8. Here's a short heads up:

    I tested is_home() and is_front_page() succesfully under WP 2.8 .. unfortunately widget logic is not running under 2.8 .. will do the same test plus the test with widget logic under WP 2.7.1

    Cheers,

    Chris

    Posted 14 years ago #
  9. Ok .. I installed a fresh copy of WordPress 2.7.1 and Widget Logic 0.45 on my machine, created a blog and a front-page template, created a blog and a front-page page, configured one widget to display on my front page and one widget to display on my blog page. In addition I created a small function in my functions.php checking for is_home() and is_front_page().

    And everything worked as expected. All tests were done with the standard Thematic theme.

    So .. this is definitely not a Thematic problem.

    Could you please mail your child theme to chris (at) wupperpiraten (dot) de ?!

    Cheers,

    Chris

    Posted 14 years ago #
  10. Was this resolved? I'd love a fix. Thanks!

    Posted 13 years ago #
  11. Sorry .. I wasn't able to reproduce this issue. All tests worked as expected.

    Chris

    Posted 13 years ago #
  12. ricarod
    Member

    Well...., was it resolved? A year later same scenario here but this time is using Thesis theme, obviously there's a new version of WP, etc (come on a year had pass) and same issue here so I don't think it has to do with themes or WP version. Ugrh! Any input on this?

    Posted 11 years ago #
  13. lance1572
    Member

    Okay well this is going to be re-visited. At least for me. I had the same problem with widget logic not working for the static homepage. I did a little testing and found it was conflicting with my query posts functions for creating an excerpt on the homepage. I used:

    <?php wp_reset_query(); ?>

    At the end of my function. Documents from Widget Logic said that it may be query issue. It worked.

    Posted 11 years ago #
  14. colfelt
    Member

    Thanks Lance - I was having the same issue (both is_home() and is_front_page() were showing nada) and that fixed it up nicely. Adding a reset seems to kick widget logic into action on the homepage again.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.