Wsparcie » Motywy » Custom template, problem z wyborem

  • Witam!

    Dopiero zaczynam swoją „przygodę” z wordpressem, dlatego proszę o wyrozumiałość 😉

    Otóż mam takie pytanie:

    W katalogu umieściłem plik archiwum.php, którego kod wygląda:

    <?php
    /*
    Template Name: Archives
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    
    	<h2><?php the_title(); ?></h2>
    
    	<?php query_posts('showposts=-1'); ?>
    
    	<ul>
    		<?php while (have_posts()) : the_post(); ?>
    		<li>
    			<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    			<?php the_time('M d Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    		</li>
    		<?php endwhile;?>
    	</ul>
    
    </div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I mam taki problem, że nie mogę go wybrać w szablonach strony. Jest tylko domyślny szablon.

    Co muszę zrobić, abym miał wybór w polu custom template?

  • Temat ‘Custom template, problem z wyborem’ jest zamknięty na nowe odpowiedzi.