Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter lukemj

    (@lukemj)

    Yes. 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.

    Thread Starter lukemj

    (@lukemj)

    I 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).

    Thread Starter lukemj

    (@lukemj)

    Solved! 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 )

Viewing 3 replies - 1 through 3 (of 3 total)