Forums

Default theme, problem with page templates? (8 posts)

  1. kdharris
    Member
    Posted 7 years ago #

    I'm running 1.5-alpha-6 and I was wondering if anyone else uses the default theme? If so, have you successfully been able to add page templates?

    I don't know if it's just me, but WordPress doesn't seem to recognize templates in the WordPress root, nor do I understand why considering it acknowledges that the path for the default theme is the root.

    My blog is at boison.org. I created a template entitled 'Page' for my about and other pages--I don't want entry meta data or comments to be displayed on these pages.

    Any ideas?

  2. Ryan Boren
    WordPress Dev
    Posted 7 years ago #

    Put them in wp-content/.

  3. kdharris
    Member
    Posted 7 years ago #

    WordPress did recognize the file after I put it in wp-content, but then I would get a parse error:

    Parse error: parse error, unexpected $ in /homepages/27/d90640279/htdocs/wp-content/themes/Pink/about.php on line 17

    I'm not sure why this is; I'm looking but I see no '$'. LOL And I don't have this problem with the index file.

  4. XeroCool
    Member
    Posted 7 years ago #

    http://wordpress.org/support/topic.php?id=19699

    Is that the problem you have? If so, I'm infected with the same problem you have.

    Read the solution I posted. Only thing I figured out. I believe It's a bug :).

  5. kdharris
    Member
    Posted 7 years ago #

    Your problem doesn't seem quite the same. I'm not having any issues with index.php, just the page template(s).

  6. Mark (podz)
    Support Maven
    Posted 7 years ago #

    I use '/wp-content/page.php' without problems.
    If you are seeing errors about variables being missing, I'd guess you've made a slight error when removing code..

  7. kdharris
    Member
    Posted 7 years ago #

    Actually, podz, that was a good idea. I went back and took a clean copy of the index file, as well as the source of the file I was basing the template on codewise, and removed things selectively.

    Looks like I forgot the <?php endwhile; endif; ?> statement after <?php the_content(); ?>. Adding that seemed to do the trick; everything works fine now.

    Silly me. Thanks everyone!

  8. error
    Member
    Posted 7 years ago #

    I personally place all my files in my own folder under /wp-content/themes. Keeps the /wp-content folder a little less cluttered (and with all the junk it's accumulating at the rate I keep uploading stuff...)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.