WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Featured Post Loop (13 posts)

  1. fatihturan
    Member
    Posted 6 years ago #

    Hello everybody!

    I have created two loop like Darren Hoyt's post (it's here:
    http://tinyurl.com/5crgk2 and my loops is here: http://pastebin.com/m675a34ae). But featured post and standard loop's latest entry are same (can you look this screenshot: http://tinyurl.com/5uau34).

    So i want to featured post would show latest post from GENEL kategory and
    standard loop would show everything else.

  2. muthukswamy
    Member
    Posted 6 years ago #

    It should work. The only possibility could be the wrong category number. You used cat=-10 Its better you check that.

  3. fatihturan
    Member
    Posted 6 years ago #

    It should work. The only possibility could be the wrong category number. You used cat=-10 Its better you check that.

    But it can't work. :) GENEL category's id number is 1. If i change cat variable to cat=-1 (to GENEL category's id number) then loop doesn't work again (screenshot is here: http://uploads.screenshot-program.com/upl0414383045.jpg)

  4. muthukswamy
    Member
    Posted 6 years ago #

    can I see your blog online? So that I can give suggestion easily.

  5. fatihturan
    Member
    Posted 6 years ago #

    I'm working on WAMP. May you see my work in there: http://88.228.41.76:81/sinemalardan/

  6. muthukswamy
    Member
    Posted 6 years ago #

    I cannot see your local server. If you can set up a test blob online, it will be better.

    Add me to messenger if you require.
    MSN - muthukswamy at hotmail.com

  7. fatihturan
    Member
    Posted 6 years ago #

    I'm uploading to my host. I will be back when it complete. Thanks for your replies. ;)

  8. fatihturan
    Member
    Posted 6 years ago #

    Yup! Upload complete. It's here: http://www.xhtmlmutfagi.com/sinemalardan/

  9. muthukswamy
    Member
    Posted 6 years ago #

    I tried the same code on my blog as well. It worked well. I think the category ID might be the problem.

  10. fatihturan
    Member
    Posted 6 years ago #

    What is your category ID number? And can you show your code?

  11. muthukswamy
    Member
    Posted 6 years ago #

    I just tested it on my local server. Used:

    <?php query_posts("cat=-4");?>

    My category ID is 4 so I used it. This worked very well. This displayed the posts eliminating the posts from category 4.

  12. fatihturan
    Member
    Posted 6 years ago #

    But my codes doesn't work. Why, why, why? :)

  13. fatihturan
    Member
    Posted 6 years ago #

    Yay! I solved it with another method in here: http://rhymedcode.net/1001-wordpression-loops/feature/

Topic Closed

This topic has been closed to new replies.

About this Topic