Results 1 to 2 of 2

Thread: Question regarding query_posts() vs. get_posts() usage on Index.php

  1. #1
    Thread Starter
    Rookie hoodwebmgmt's Avatar
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts

    Question Question regarding query_posts() vs. get_posts() usage on Index.php

    I'm in the middle of hacking up my index.php tabs, and I noticed that tab 1 & 3 uses query_posts to call the loop for that tab. As I was reading the documentation for query_posts I noticed that it said this:

    The query_posts() function is intended to be used to modify the main page loop only. It is not intended as a means to create secondary loops on the page. If you want to create separate Loops outside of the main one, you should use get_posts() instead.
    Is there a specific reason that query_posts is used on both tabs? If I'm planning on converting tab 3 to a category specific tab, should I keep query_posts or implement get_posts like they suggest?


  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Thanked 2,966 Times in 2,842 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Possible to change only index.php ?
    By blabla in forum ClassiPress General Discussion
    Replies: 1
    Last Post: December 23rd, 2010, 10:47 AM