WordPress.org

Ready to get started?Download WordPress

Forums

"The World's Simplest Index Page" doesn't work (15 posts)

  1. ronc0011
    Member
    Posted 1 year ago #

    So I'm working on learning theme development in WordPress I've worked so far with tutorials from various sites claiming boosting tutorials on WP theme development. I am currently working from the WordPress .org site and I just created an index.php page from WP.org's site i.e "The worlds simplest index page and I still get a page that doesn't display at all. Even if I go in and set a text widget in the side bar through the admin panel Also I have made post to the site under a different theme so there are post in the database.

    So here is the code from WordPress.org's codex page i.e. "Worlds simplest index page.

    <?php
    get_header();
    if (have_posts()) :
       while (have_posts()) :
          the_post();
          the_content();
       endwhile;
    endif;
    get_sidebar();
    get_footer();
    ?>

    Now if I select one of the themes that come with WP everything works fine SO what's missing from this?

  2. ronc0011
    Member
    Posted 1 year ago #

    Ya know an "edit" feature would probably be a handy thing to have here.

  3. Rafadude
    Member
    Posted 1 year ago #

    I don't get what you're trying to do. is it already installed? if so, did you go to

    dashboard
    ->appearance
    ->themes
    ->editor

    and then edit the index file from there?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    There is one. You can edit your forum posts for a full hour after publishing them.

    Have you also created header.php and footer.php template files in your new theme?

  5. ronc0011
    Member
    Posted 1 year ago #

    hey thanks for replying guys. Here is a list of the files I currently have present in the test site

    404.php
    archive.php
    attachment.php
    author.php
    category.php
    comments.php
    date.php
    footer.php
    front-page.php
    functions.php
    header.php
    home.php
    image.php
    index.php
    rtl.css
    search.php
    sidebar.php
    style.css
    tag.php
    taxonomy.php

    And also While the header.php, sidebar.php and footer.php may not be coded correctly shouldn't the Index.php pull something at least and display something ??

    Ok I could see if there was a problem with the header.php file that might incorrectly setup the tags for the index page i.e. not properly opening teh body tag etc. SO I just tried substatuting the twety ten header.php for the header.php file in my new theme didn't work still nothing displayes.

    So I have WP running locally on my desktop machine I am creating the files through an editor, in this case Web Matrix . And I can open the site with Internet Explorer at the address http/localhost:21990/ which is local host on port 21990 the port Web Matrix setup in its test server in IIS

    Interestingly Microsoft now supports PHP development through their Web Matrix product complete with a WordPress install and configuration for running PHP and a Database backend for WordPress to use.

    It all runs fine except for the test theme I'm trying to work up to learn how to create my own themes. Any other theme works ujust fine.

  6. ronangelo
    Member
    Posted 1 year ago #

    Have you set debug to true on WordPress wp-config.php
    That could help to tell what's wrong.

  7. ronc0011
    Member
    Posted 1 year ago #

    OK just tried that. Getting nothing. Luckyly I can atleas get to the admin pages it's just that the site itself won't display /run

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Is this a complete custom theme? Or are you modifying an existing theme?

  9. ronc0011
    Member
    Posted 1 year ago #

    I think what would be really helpful would be just the barest minimum flies and corresponding code to get a working theme.

    Surely someone out there has such a thing and surely there must be such a thing.

    I'm pretty sure if I start from just the barest minimum and then start adding things from there until something breaks , learning how themes work and the anatomy of a theme would be sooo much easier.

  10. esmi
    Forum Moderator
    Posted 1 year ago #

  11. ronc0011
    Member
    Posted 1 year ago #

    Way cool. Thank You.:-)

  12. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Or http://wordpress.org/extend/themes/oenology --

    Though it's not "minimal" in the way the above theme is, it's designed "as an educational reference for Theme development" - it has lots of explanations built into the theme files.

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    Twenty Ten was designed as an instructional theme too - although I felt they over-complicated it a little. I expect they were just showing off ;-)

  14. ronc0011
    Member
    Posted 1 year ago #

    Or http://wordpress.org/extend/themes/oenology --

    Though it's not "minimal" in the way the above theme is, it's designed "as an educational reference for Theme development" - it has lots of explanations built into the theme files

    Yeah actually the one above isn't formatted to well as most, almost all of the menu is off the page. Really difficult to navigate the admin panel

    thanks I'll check this one out

  15. ronc0011
    Member
    Posted 1 year ago #

    Or http://wordpress.org/extend/themes/oenology --

    Though it's not "minimal" in the way the above theme is, it's designed "as an educational reference for Theme development" - it has lots of explanations built into the theme files.

    OK, well this certainly looks promising. Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.