lukemj
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: is_home(), is_front_page() not workingYes. I read all the documentation on them, however, I have no idea how or where to set the “reading.” The “WordPress address” and “site address” are both set to the subdirectory. Someone else set everything up and he will be taking over webmaster duties once I install the theme, so I don’t want to tamper with the settings too much.
Forum: Fixing WordPress
In reply to: is_home(), is_front_page() not workingI tried several combinations, none of which worked:
if (is_home()) :if (is_front_page()) :if (is_front_page() && is_home()) :if (is_front_page() || is_home()) :The last one worked well when I used it in my test environment. I’m not familiar enough with those functions to know how they operate, but my guess was that they were factoring in the subdirectory somehow. I honestly don’t know if that’s the case, but the above string I posted works because it operates solely based on whether the page’s number is less than one (returns ‘true’ for the index and ‘false’ for any other page).
Forum: Fixing WordPress
In reply to: is_home(), is_front_page() not workingSolved! I basically replicated the function of is_home()/is_front_page() with the following, but made it so that the directory location isn’t a factor:
wp_reset_query(); $thispage = $post->ID; if ( $thispage < 1 )