• Hello,

    I have the following issue: My self-made templates are not shown in the template-menu when editing a page although I copied the code from inove-templates. A few weeks ago this worked, but at the moment not.

    Here’s the code of one of my templates:

    <?php
    
    /*
    
    Template Name: Kontakt Impressum
    
    */
    
    ?>
    
    <?php get_header(); ?>
    <?php $options = get_option('inove_options'); ?>
    
    <?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
    
            <div class="post" id="post-<?php the_ID(); ?>">
                    <h2>Kontakt-/Buchungsformular</h2>
                    <div class="info">
    
                            <div class="act">
                                    <?php if ($comments || comments_open()) : ?>
                                            <!-- <span class="comments"><a href="#comments"><?php _e('Goto comments', 'inove'); ?></a></span>
                                            <span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'inove'); ?></a></span> -->
                                    <?php endif; ?>
                                    <?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
                                    <div class="fixed"></div>
                            </div>
    						<?php insert_cform(); ?>
                            <div class="fixed"></div>
                    </div>
    
                     <div class="content">
                            <?php the_content(); ?>
                            <div class="fixed"></div>
                    </div>
            </div>
    
    <?php else : ?>
            <div class="errorbox">
                    <?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
            </div>
    <?php endif; ?>
    <?php get_footer(); ?>

    What could be the reason for that?

    Thanks a lot,
    parser022

Viewing 2 replies - 1 through 2 (of 2 total)
  • What you did appears correct. You have these placed directly in the theme’s folder, not in a subfolder, correct?

    /wp-content/themes/{themename}/

    Thread Starter parser022

    (@parser022)

    Yes, I did. The files have been there all the time. From one day to another they did’t work anymore.

    Why god, WHY?!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Templates don’t work anymore’ is closed to new replies.