Wordpress ignoring page template from drop down -
i struggling appears easy, page templates. have read plently posts on this, people seem forget put comment @ top of page , can't show in drop down menu on pages. can this, problem next stage.
i have written basic template (custom-page.php):
<?php /* template name: test template */ ?> <?php get_header(); ?> <h1>teams!</h1> <?php get_footer(); ?> it shows , can select on new page sidebar. when visit new page seems have defaulted archive page using content template include.
thanks in advance.
if put following in footer, should able grok further information how template being selected (and know might happening).
<?php global $template; echo(basename($template)); ?> then template name in footer. it's possible (like @adomnom said) have slug conflict. there handful of other strange scenarios caused plugins, custom functions, or other factors well.
Comments
Post a Comment