1

Template selection area is not visible on page editor sidebar in wordpress twentty sixteen default theme

    <?php
/**
 * Template Name:Zoho testAPI
 *
 *
 *
 * 
 */


echo phpinfo();
?>
3
  • Try a space between : and your template name
    – iantsch
    Dec 15, 2016 at 8:58
  • @iantsch you see before any comment sixteen themes Dec 15, 2016 at 8:59
  • here are not any options to select template Dec 15, 2016 at 8:59

1 Answer 1

0

Twenty Sixteen does not contain any post type templates by default, thus no template selection is shown.

Adding a custom foo.php file to the wp-content/themes/twentysixteen folder with the following content works just fine and reveals the template selection meta box (title: "Page Attributes"):

<?php
/**
 * Template Name: Foo Bar
 * Template Post Type: post, page
 */

 // Do some stuff…

It also works for pages only using Template Name without Template Post Type:

<?php
/**
 * Template Name: Foo Bar
 */

 // Do some stuff…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.