in WordPress

WordPress: How to Check if the is_front_page a page ?

In WordPress reading option if you select page as home then that is called frontend page technically and in that is_home() returns false as it’s not the actual archive page home page that we find default. There is another helper function in wordpress to check if regular or page based home using is_front_page() but if you check in plugin or theme using is_front_page() it will return true for both regular archive home or frontpage based home page(if you set a page as home). So, how can we check if the home page is page based front page or archive base front page or home ?

Leave a Reply