[resolved] Lost my template selector (5 posts)

  1. lajlev
    Posted 7 years ago #

    I have in some way lost my template selector, so when I write a new page I cant select a template :-(
    I use 3 sidebars, do you think that can be the problem?

    I have add this line to my functions.php in my theme lib.
    <?php if ( function_exists('register_sidebars') ) register_sidebar('1'); register_sidebar('2'); register_sidebar('3');?>

    This is my sidebar code:

    <!-- begin sidebar -->
    <div id="sidebar">
    <?php echo ddlsp_generate(); ?>
    	<ul id="sidebarwidgeted">
    	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    	<?php endif; ?>
    <!-- end sidebar -->

    This is my page code:

    <?php get_header(); ?>
    <div id="content">
    	<div id="contentleft">
    		<div class="postarea">
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<h1><?php the_title(); ?></h1>
    			<?php the_content(__('[L&aelig;s mere]'));?>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    <?php include(TEMPLATEPATH."/sidebar_page.php");?>
    <!-- The main column ends  -->
    <?php get_footer(); ?>
  2. lajlev
    Posted 7 years ago #

    No one with any ideas?

  3. James M
    Posted 7 years ago #

    Yeah, same thing happen to me.

    Don't know what I change, but I can not select the template for the page when editing an existing page or writing a new page.

    Please help, :)

  4. thisisedie
    Posted 7 years ago #

    I've never heard of selecting a "template" when writing a page. WP uses themes which cover both posts and pages and you choose a theme under Design.

  5. flashaaron
    Posted 7 years ago #

    Custom page templates weren't showing in the template selector for me either but they reappeared after selecting a completely different theme and then re-selecting my chosen theme.

    thisisedie - The page template selector appears on a page write page in the advanced options (only if the theme includes custom page templates). wordpress.org users can create their own custom templates ( http://www.binarymoon.co.uk/2007/06/wordpress-tips-and-tricks-custom-templates/ ) and upload them to their theme directory.

Topic Closed

This topic has been closed to new replies.

About this Topic