Use of IF statement in Header file
As Maruti Mohanty mentioned you might not be using get_template_part in the correct way. The first argument is the slug name for the generic template. The second argument is the name of the specialized template. So currently your code is doing the following: On the page that has the ‘custom-page’ slug, display the template part … Read more