WordPress.org

Forums

No 'Loop' found in theme editor..help (5 posts)

  1. racerman28
    Member
    Posted 7 years ago #

    Hello,

    I'm doing some mods/installing plugins on my new blog but in the theme editor there is no listing for 'the loop', which is what I'm trying to add code to.

    What possibly should I be looking for? The theme BTW is mandigo.

    Thanks!

    Kenneth

  2. JustinRDev
    Member
    Posted 7 years ago #

    Lines 17 & 19:

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>

    Check out:
    http://codex.wordpress.org/The_Loop_in_Action

  3. racerman28
    Member
    Posted 7 years ago #

    Hi Justin,

    I don't think I'm following you. I don't know which file to modify.

    K

  4. JustinRDev
    Member
    Posted 7 years ago #

    Sorry - edit the theme's index.php and you'll see lines 17 and 19. 19 is specifically the "loop" that everyone talks about and you'll want to put your code below that line. You may want to read up on the link I posted above to learn a little more about it otherwise you may end up with automatic code all over the place.

  5. racerman28
    Member
    Posted 7 years ago #

    Thanks Justin!

Topic Closed

This topic has been closed to new replies.

About this Topic