is_home not functioning at all
-
I’m working on a new theme and the is_home statement is not working at all. It’s as if WP isn’t determining what the home page is. I’ve seen that this happens with static front pages, but this is a dynamic WP functioning page. I’ve included the sidebar code (where the conditional statement is) and a link to the compete page. Any suggestions would be great. Thanks.
https://gallery.theskylight.org/wordpress/
<div id="sidebar"> <ul id="events"> <?php query_posts('cat=3'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $firstpost = $post->ID; ?> <li id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" title="Read <?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endwhile; else: endif; ?> </ul> <?php if (is_home()) { echo '<div id="about">'; echo '<p>We are the youth ministry of <a href="https://www.fumc-orl.org/" target="_blank">First United Methodist Church of Downtown Orlando</a>. We seek to bring 6th through 12th grade students closer to God in a fun and relevant way. <a href="about/">Want to know more?</a></p>'; echo '</div>'; } ?> <p>test</p> </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘is_home not functioning at all’ is closed to new replies.