• Resolved reypm

    (@reypm)


    I’m trying to show AdRotate content just in the main page of my blog by using this conditional tags: is_home() && is_front_page() also this other too is_home() || is_front_page() and didn’t work. If I do this in header.php: echo is_home(); I get 1 as result which make me think that’s TRUE. Also if I try with echo is_front_page() I get the same result. What is wrong then?

    https://wordpress.org/plugins/widget-logic/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    does your theme use any custom query in the template code before the widget is called?

    custom queries generally need to be reset with wp_reset_postdata() or wp_reset_query() epending on the exact code of the query.

    what theme are you using?

    Thread Starter reypm

    (@reypm)

    How do I know if theme use a custom query? I mean where I’m looking for that?

    I’m using this paid theme

    Thread Starter reypm

    (@reypm)

    For some reason links didn’t work, here it’s
    http: / / themeforest.net/item/news-grid-wp-magazine-theme/5624719

    Michael

    (@alchymyth)

    please contact the developer of your theme for support with your problem.

    this forum does unfortunately not support commercial themes; http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    Thread Starter reypm

    (@reypm)

    Thanks I’ll ask to developer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘is_home() and is_front_page() doesn't work’ is closed to new replies.