WordPress.org

Ready to get started?Download WordPress

Forums

Subcategory issues (4 posts)

  1. leosantospinto
    Member
    Posted 3 years ago #

    Hello everyone! I was adapting a theme to my needs when I found a problem in the PORTFOLIO page. I do not understand that much of PHP, so I'll try to be as clear as possible with my questions! =)

    This page has a portfolio with some categories: TODOS (that shows all the images), DRAWINGS and PAINTINGS (that shows the images on these categories). I've added a subcategory called '2011' as DRAWINGS' parent.

    What I am not able to do is to show this subcategory on the page. I want '2011' to appear right below the link DRAWING when clicking.

    IMPORTANT NOTE: When I put this code

    $terms = get_terms('portfolio_category', 'portfolio_subcategory' $args );

    instead of this one

    $terms = get_terms('portfolio_category', $args );

    The result in the menu is: TODOS 2011 DRAWINGS PAINTINGS

    Here's the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thank you guys!

  2. leosantospinto
    Member
    Posted 3 years ago #

    updated with the page link!

  3. leosantospinto
    Member
    Posted 3 years ago #

    UPDATED: PASTEBIN

    the code is here:

    http://pastebin.com/LQVF0Tqy

  4. leosantospinto
    Member
    Posted 3 years ago #

    one more change: 'DRAWING' is the parent and '2011' is the subcategory

Topic Closed

This topic has been closed to new replies.

About this Topic