Forums

[Plugin: Widget Logic] HELP condition to test HOME but not BLOG pages (both custom) (2 posts)

  1. Zambrano Sergio
    Blocked
    Posted 2 years ago #

    I'd like to get a condition to test TRUE for the HOME page but NOT for the BLOG page when both use the same template (both pages selected to show home and blog are the same index.php with a template name inside)

    I tried is_page() && is_home() for the blog page, since the front page body class doesn't show "page" but both show "home", no success.

    Extra data:
    The following post is about two widgets which show up both or just one, depending on the order in which they appear in the sidebar.

    Both are WP widgets (cats, recent) and both use the same condition !is_front_page()

    http://wordpress.org/support/topic/379972?replies=1

    Any idea?

    Thanks

  2. alanft
    Member
    Posted 2 years ago #

    well i haven't checked, but the template shouldn't have any bearing on the conditionals used to separate the home page (is_front_page) and the blog page (is_home). there may be something else going on in the widgets you are using. see the suggestion in the older topic you linked to.

    (i only missed that other topic cos for some reason the 'widget logic' tag on that is widget-logic-3. weird!)

Topic Closed

This topic has been closed to new replies.

About this Topic