WordPress.org

Ready to get started?Download WordPress

Forums

Where is loop.php for this theme? (22 posts)

  1. ORTOX06
    Member
    Posted 3 years ago #

    I need to edit the loop.php for this theme for my website. Where is the loop.php? It doesn't exist apparently and I don't know why... Please help!!!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Each template file probably has its own Loop.

  3. ORTOX06
    Member
    Posted 3 years ago #

    By this you mean the different php files have there own loops inside?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Yes. It's only themes that were upgraded to WP 3.0 or those released very recently that have a specific loop.php template. Prior to 3.0, all archive and page template files had their own Loops.

  5. David Gwyer
    Member
    Posted 3 years ago #

    Yes, that is what esmi is getting at..

    What theme are you using? Not every theme has its own loop.php in fact I have not seen many that do apart from some of the newer ones. I know Twenty Ten uses this method to store all the post loops in one file to reduce redundancy (code duplication).

    This will probably become the standard way to use loops in themes but it certainly is not implemented in a lot of them currently.

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    It'll be a bit before I go the loop.php route..... it makes my brain hurt!

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    @Rev: TwentyTen's loop.php is a little complex but overall, it saves so much code replication. Many themes can run with just a single Loop in loop.php - which really simplifies things when it comes to upgrading/adjusting code.

    I love it!

  8. ORTOX06
    Member
    Posted 3 years ago #

    The theme I'm using is greyzed and I need the home page to always show excerpts and not my full posts.

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    Try editing index.php in your theme and replacing <?php the content();?> with <?php the_excerpt;?>

  10. David Gwyer
    Member
    Posted 3 years ago #

    I think the new loop.php concept is an excellent idea but people looking at the Twenty Ten implementation will probably be put off initially. However as this method gets documented in new books etc. then it WILL become the standard way of doing things.

    It is not trivial though and people will most likely carry on with the way they know unless there are some clear and easy guidelines on how to use a loop.php file in there theme.

  11. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    I like the concept of the loop.php, It's more about me changing my thinking. When I sit down to restyle my site again with my next new theme, I'll probably decide to wrap my head around it more

  12. ORTOX06
    Member
    Posted 3 years ago #

    Good call esmi! That worked perfectly.

  13. ORTOX06
    Member
    Posted 3 years ago #

    If you guys wanna check out my site it is trainingtech.org

  14. The Forge
    Member
    Posted 3 years ago #

    @ORTOX06 - You should really update your theme to use our latest version, which we've released at http://www.efrogthemes.com - it's the same theme, but packed with new options :)

  15. mrgtb
    Member
    Posted 3 years ago #

    @The Forge

    Which version of WordPress is the 1.3 version of this theme for downloaded from your site? There seems to be some confusion if it works with WordPress 3.0 and upwards, or if you have to use the lesser WP 2.x version with it.

    Also, is the 1.3 theme version newer than the version listed on WordPress for download?

  16. PhaZZed
    Member
    Posted 3 years ago #

    @mrgtb - What you should actually be doing is downloading the latest version of the theme from http://www.efrogthemes.com - The wordpress.org version is rather outdated. If you're interested in the wordpress.com version, you will need to check in with WordPress as they actually coded that up.

  17. esmi
    Forum Moderator
    Posted 3 years ago #

    You should really ask for the wordpress.org version of the theme to be removed if you do not intend to update it.

  18. PhaZZed
    Member
    Posted 3 years ago #

    @esmi - The wordpress.org version still works on the latest version of WordPress, that's actually why we haven't requested it to be removed. I can also tell you that I do have it on my list of things to-do, we've got some new fixes that we want to deploy onto wordpress.org and I actually did try, but got a few bug fixes to get sorted, have a TRAC version, etc.

  19. esmi
    Forum Moderator
    Posted 3 years ago #

    Fair enough. :-) It's just that the 2 versions seem to be causing some confusion for users.

  20. PhaZZed
    Member
    Posted 3 years ago #

    Agreed. The main problem is that the version on eFrog Themes has a complete Options Panel, with all sorts of customizable options, but we can't deploy that onto wordpress.org. At the same time, Greyzed has been downloaded thousands and thousands of times from wordpress.org, so we don't want to just remove it :)

  21. esmi
    Forum Moderator
    Posted 3 years ago #

    Why not call the eFrog version something like "Greyzed Enhanced" or "Greyzed Extra"? Quite a few developers have a basic theme on wordpress.org with an enhanced (aka "on steroids") version elsewhere. It's the fact that both versions have the same name that I think is causing the confusion.

  22. PhaZZed
    Member
    Posted 3 years ago #

    @esmi - That's a good idea and perhaps an oversight on our behalf. We were new to the premium themes game back then and perhaps our ignorance lead to that. I speak personally here ;) It's a good suggestion, I'll take it to the team. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags