Skip to main content
10 events
when toggle format what by license comment
Nov 2, 2018 at 19:15 comment added Remzi Cavdar @DylanPierce I have also given you a thumbs up. Brady's answer is more bulletproof. I think vragant is setting up your test environment wrong because both is_front_page() and is_home() should work
Nov 2, 2018 at 16:43 history edited Dylan Pierce CC BY-SA 4.0
cavaet
Nov 2, 2018 at 16:42 comment added Dylan Pierce @RemziCavdar that's true. I'll edit my answer. Unfortunately due to the many ways you can host WP, you run into many problems.
Nov 2, 2018 at 8:37 comment added Remzi Cavdar You're code is almost perfect, the only thing is: What if WP is installed in a subdirectory, for example /blog or /wordpress. Than this will be useless.
May 4, 2016 at 13:07 comment added Dylan Pierce I am using the wordpress VVV box with the multisite plugin : github.com/Varying-Vagrant-Vagrants/vvv-multisite perhaps there's something misconfigured on it? Regardless just leaving an answer for a workaround if anyone comes along with a similar situation.
May 4, 2016 at 9:53 comment added Christine Cooper I just tested both conditions on a multisite environment and both returned true when I visited the respective / pages.
May 3, 2016 at 17:12 comment added Dylan Pierce On a multi-site main site if you use any form of is_home() or is_front_page() on a static or blog frontpage the functions will both return false.
May 3, 2016 at 16:58 comment added Christine Cooper Please elaborate on how it doesn't deliver what's expected.
May 3, 2016 at 15:34 review First posts
May 3, 2016 at 15:45
May 3, 2016 at 15:30 history answered Dylan Pierce CC BY-SA 3.0