Support » Themes and Templates » My own theme not working

Viewing 6 replies - 1 through 6 (of 6 total)
  • This might seem like an obvious question, but have you downloaded a few sample templates to see how they’re coded? I recommend looking at all of the files in the standard or classic WP template (the 2 that come with the WP download). My index.php has a lot more code than what you’ve listed (although, I have a robust template).

    Another obvious question…have you created the template/shell the PHP functions are calling to? You might want to provide more detailed information for the experts here (of which I am not one). 🙂

    Thread Starter charlie_lab

    (@charlie_lab)

    Hello,

    I have looked at the files and i have followed a tutorial i found here(http://www.cypherhackz.net/archives/2006/12/13/make-your-own-wordpress-theme-part-1/)

    I have made the files i called to.

    Roelof

    Please post the URL that links to the blog. Seeing the site is helpful, but forum members need to see the blog with the code to help troubleshoot.

    Thread Starter charlie_lab

    (@charlie_lab)

    oke,

    The url is : http://wordpress.tamarawobben.nl

    Regards,

    Roelof

    Thread Starter charlie_lab

    (@charlie_lab)

    nobody ??

    Roelof

    Ok, I’m not a WP expert, but I have fiddled around with several templates and 2 blogs. I’ve taken a look at the code you posted above, and compared it with the classic and default templates that come with the WP download, as well as several free templates I’ve downloaded. The order of your PHP statements doesn’t match any of them.

    Here’s a link to a theme I was considering: Elegance Remix. Nice, not too complicated. Here’s the code from the index.php:

    <?php get_header(); ?>
    <!-- Container -->
    <div class="CON">
    
    <!-- Start SC -->
    <div class="SC">
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="Post" id="post-<?php the_ID(); ?>" style="padding-bottom: 40px;">
    
    <div class="PostHead">
    <h1><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <small class="PostAuthor">Author: <?php the_author() ?> <?php edit_post_link('Edit'); ?></small>
    <p class="PostDate">
    	<small class="day"><?php the_time('j') ?></small>
    	<small class="month"><?php the_time('M') ?></small>
    	<small class="year"><? // php the_time('Y') ?></small>
    </p>
    </div>
    
    <div class="PostContent">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    <div class="PostDet">
    <ul>
     <li class="PostCom"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></li>
     <li class="PostCateg">Filed under: <?php the_category(', ') ?></li>
    </ul>
    </div>
    </div>
    
    <!--<?php trackback_rdf(); ?>-->
    <div class="clearer"></div>
    <?php endwhile; ?>
    
    <div class="Nav"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
    
    <?php else : ?>
    <h2><?php _e('Not Found'); ?></h2>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>
    <!-- End SC -->
    <div class="SR">
    <?php get_sidebar(); ?>
    </div>
    <!-- Container -->
    </div>
    
    <?php get_footer(); ?>

    You can see that the order of the PHP statements is different than what you have listed. I won’t guarantee this is the problem, but I think it’s a good starting point for you to consider.

    If you are unable to solve this, have you thought of finding a good WP template, and then simply trying to change the images and color scheme? This is generally what I do (while giving credit to the developer who created the layout).

    I hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My own theme not working’ is closed to new replies.