• Hey Guys. I just posted a question here.

    I solved that first problem, but now wordpress has cropped up with a different one. After uploading my blog.php file to my theme, I can now choose, “blog/par” from the drop down template box for my “blog” page.

    I can create the page, but when I go to click on it, it says:

    “Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/maimedkr/public_html/lifecrafting/wp-content/themes/clean-copy-1/blog.php on line 2

    Parse error: syntax error, unexpected T_STRING in /home/maimedkr/public_html/lifecrafting/wp-content/themes/clean-copy-1/blog.php on line 2″

    The uploaded file is pasted exactly as it appeared in the faq.

    What am I doing wrong?

    Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The best way is to open the home.php and save as blog.php.

    Thread Starter docholliday

    (@docholliday)

    There is no home.php in the theme directory

    Then use index.php.

    Thread Starter docholliday

    (@docholliday)

    Ok. So I took index.php and resaved it as blog.php in my theme’s directory. I did not fix the matter. I then deleted out the index content and put in the blog content:

    <?php
    /*
    Template Name: Blog
    */
    // Which page of the blog are we on?
    $paged = get_query_var(‘paged’);
    query_posts(‘cat=-0&paged=’.$paged);
    load_template(TEMPLATEPATH . ‘/index.php’); //loads index
    ?>

    Nothing has changed. In fact, I now do not even see the blog template listed on the blog drop down menu.

    Thread Starter docholliday

    (@docholliday)

    That apparently broke the theme. I reuploaded it, tried just renaming the index file, and found that that disabled the theme.

    Thread Starter docholliday

    (@docholliday)

    Also, am I supposed to replace the text with something? For instance, it says:

    Which page of the blog are we on?
    $paged = get_query_var(‘paged’);
    query_posts(‘cat=-0&paged=’.$paged);
    load_template(TEMPLATEPATH . ‘/index.php’); //loads index

    Do I put something in where is says paged or templatepath?

    Go back and read your intial topic – I posted there (and I dont’ want to post it again here).
    You are way overcomplicating it…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New Problem With Using root/blog directory.’ is closed to new replies.