WordPress.org

Ready to get started?Download WordPress

Forums

More help on "the Loop" (5 posts)

  1. bargainf
    Member
    Posted 9 years ago #

    I used the Loop code that you suggested to get the posts to appear within my website template, but I just kept getting, 'Sorry, no posts matched your criteria', even though I have two posts. Is there something else that needs to be added to the sample code you gave? Also, is there a way to pull in more than just the articles - i.e., also have the search, categories and archives buttons show up in my layout? I have read through the documentation on "the Loop", but I am still unclear on this. Any help you could provide would be much appreciated. Thank you!

  2. Kafkaesqui

    Posted 9 years ago #

    1. Which version of WordPress are you using?

    2. Take The Loop portion of your template and paste it here:

    http://paste.uni.cc/

    and provide the link you get there in a reply.

  3. bargainf
    Member
    Posted 9 years ago #

    I posted the Loop code from my file. Here is the link to the posting:

    http://paste.uni.cc/6708

    I am using the most recent version of WordPress. I guess I thought I could paste the Loop code into one of my already-exisitng html files on my website, but should I be renaming my file to .php?

  4. Kafkaesqui

    Posted 9 years ago #

    " but should I be renaming my file to .php?"

    Most servers won't recognize a PHP file unless it has the .php extension.

  5. 7milesdown
    Member
    Posted 9 years ago #

    It has to have the php extention to work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.