How to prevent the default home rewrite to a static page

I’m looking for a way to prevent the default behaviour (when you have a static page set as the site homepage or ‘frontpage’ (in settings>reading>front page displays ); I want the domain.com/ page to point here (as it does), but if I made a page home, which would otherwise live at domain.com/home WordPress automatically redirects … Read more

Category page doesn’t use category.php, instead it redirects to homepage

I am currently modifying a theme. This theme doesn’t had a category.php I needed a custom category page. So, I made one. It works on my local server, but when I uploaded it to a real server, this page doesn’t work. It always redirect to frontpage. It has a front-page.php and other pages include archive.php, … Read more

What is the correct method for determining ‘is_front_page’ when using filters such as ‘pre_get_posts’ and ‘posts_where’?

On my site several filters should be applied if the user is viewing the static home page. My understanding is that is_front_page() should determine if that is indeed the case. However, whenever I use the function I find that sometimes it returns true (e.g. posts_orderby) but mostly it returns false (e.g. pre_get_posts, posts_fields, posts_join and … Read more

Ways to have multiple front-page.php templates that can be swapped out?

I essentially want to create several different front-page.php templates with different loops and layouts and then present an option in the admin panel to select one template on one day and a different template on another day. This can be done, I suppose, by fooling WordPress and selecting a static page to appear as the … Read more