359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says

I need some help with WordPress, I tried to make a site from scratch. And well, it didn’t work… at all. I was using the “How to make … from Scratch” tutorial on NetTuts, and I followed it and it didn’t work.

I really need some help.

Here is my code:

index.php


<?php get_header(); ?> 

<div id="content">
&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;  

<h2><a href="&lt;?php the_permalink() ?&gt;">&lt;?php the_title(); ?&gt;</a></h2>  

&lt;?php the_content(); ?&gt;  

<p>&lt;?php the_time('F j, Y'); ?&gt; at &lt;?php the_time('g:i a'); ?&gt; | &lt;?php the_category(', '); ?&gt; | &lt;?php comments_number('No comment', '1 comment', '% comments'); ?&gt;</p>  

&lt;?php endwhile; else: ?&gt;  

<h2>Woops...</h2>  

<p>Sorry, no posts we're found.</p>  

    &lt;?php endif; ?&gt;  
</div>

&lt;?php get_footer(); ?&gt;  

header.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>&lt;?php bloginfo('name'); ?&gt; &lt;?php wp_title(); ?&gt;</title>
<meta content="&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('charset'); ?&gt;" http-equiv="Content-Type" />  
<link href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.4.1.js" language="Javascript" type="text/javascript"></script>
<script src="js/jquery.lwtCountdown-0.9.5.js" language="Javascript" type="text/javascript"></script>

&lt;?php wp_head(); ?&gt; 

</head>
<body>

<div id="middle">
    <br /><br /><br /><br />
    <div id="banner">
        <div id="title"></div>
    </div>
</div></body></html>

footer.php

<div id="footer">  

    <!-- Please leave this line intact -->  
    <p>Design by <a href="http://www.jholstein.com">Jeremy Holstein</a><br />  
    <!-- you can delete below here -->  

    © &lt;?php the_time('Y'); ?&gt; &lt;?php bloginfo('name'); ?&gt;<br />  
    <a href="&lt;?php bloginfo('rss2_url'); ?&gt;">Grab the feed</a></p>  

</div>  

&lt;?php wp_footer(); ?&gt;

Please tell me what I’m doing wrong. If you go to my site (www.jholstein.com) it says there is an error on line 3. By the way, line 3 in index.php is

<?php get_header(); ?>
.

Please help.

3114 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley says

well to start your ending you body and html tags in your header file that should be in the footer

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says
well to start your ending you body and html tags in your header file that should be in the footer

It isn’t like that on my code. Don’t know why it posted it here like that…

3114 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley says
well to start your ending you body and html tags in your header file that should be in the footer
It isn’t like that on my code. Don’t know why it posted it here like that…
I just checked your domain and… is it on a fresh install of wordpress the error your getting is in your core folder if it was your theme it would look something like
/public_html/wp-content/theme/index.php
not(what its showing)
/public_html/index.php
359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says
well to start your ending you body and html tags in your header file that should be in the footer
It isn’t like that on my code. Don’t know why it posted it here like that…
I just checked your domain and… is it on a fresh install of wordpress the error your getting is in your core folder if it was your theme it would look something like
/public_html/wp-content/theme/index.php
not(what its showing)
/public_html/index.php

Thank you. I did not know that since the tutorial mentioned nothing of the like.

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says

I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do.

I wish the tutorial had better info.

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 100 and 199 users
+2 more
duotive says
I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do. I wish the tutorial had better info.

the style sheet is in the root…. of the theme

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says
I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do. I wish the tutorial had better info.
the style sheet is in the root…. of the theme

I had it in its own folder like it should and I got the error. I checked the default theme and the style sheet was in the root folder of the theme so I did the same, yet it still didn’t work.

But now I’m at school and can’t really move the files around until I get home.

Does anyone know of a tutorial that actually tells you exactly what to do? Because that NetTuts tutorial was horrible.

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
jjjrmy says

Or is there anywhere I can get a completely working theme t hat has everything. That is very basic that I can just use to make my own theme ontop of? Pretty much a base template to work off of. Is there any being sold on here?

8 posts
  • Bought between 1 and 9 items
  • Has been a member for 3-4 years
TRILUX says

here is a Blank Wordpress Theme as you requested.

by
by
by
by
by
by