WordPress.org

Ready to get started?Download WordPress

Forums

How to show 5 posts from each Custom Taxonomy sub-category/term (6 posts)

  1. tenten71
    Member
    Posted 2 years ago #

    Task: Create a template page that shows 5 custom posts from each custom taxonomy term.

    custom post-type: fabrics
    custom taxonomy: fabric-category
    terms under custom taxonomy include: 'basic', 'novelty', 'holiday', etc.

    After several days of searching and hair-pulling I came up with the following solution. If any WordPress experts out there can think of a better solution that either uses less code or is faster performance-wise, I and others like me will be much appreciative.

  2. tenten71
    Member
    Posted 2 years ago #

    Here's the code:
    http://pastebin.com/DdzCaVGw

  3. Murtaza Frosh
    Member
    Posted 2 years ago #

    Hello TenTen7;

    Thanks for your reply really appreciate it. I tried going to the code link you've given but its not working i am getting a "url not found error" can you please re-paste the correct link.

    Regards
    Murtaza

  4. tenten71
    Member
    Posted 2 years ago #

  5. Murtaza Frosh
    Member
    Posted 2 years ago #

    dude I tried the link but I get a 403 forbidden error aaargh :(

  6. tenten71
    Member
    Posted 2 years ago #

    Are you at work behind some strict firewall? or using some weird browser plug-ins? Can you copy and paste either link in another browser or try a different computer?

Topic Closed

This topic has been closed to new replies.

About this Topic