Display only parent categories via shortcode

Community Forums Forums General Discussion Display only parent categories via shortcode

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  cehwitham 1 year, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38336

    Vikram
    Participant
    Post count: 7

    Hi there,

    I am using the eleven40 theme.

    Is there a way to modify the [post_categories] shortcode to only display the parent categories instead of all the categories that it current displays?

    Thanks!

    • This topic was modified 1 year, 5 months ago by  Vikram.
    • This topic was modified 1 year, 5 months ago by  Vikram.
    #43699

    cehwitham
    Participant
    Post count: 396

    I’ve not tried it but I think you can use the genesis_post_categories_shortcode filter.

    Chris


    Twitter: cehwitham Web: cehwitham.com

    #45177

    Vikram
    Participant
    Post count: 7

    Hey Chris,

    I can’t seem to find anything about a genesis_post_categories_shortcode filter?

    Vikram

    #51820

    cehwitham
    Participant
    Post count: 396

    Information around it is a little sketchy.

    It’s listed on the filter reference here: http://my.studiopress.com/docs/filter-reference/

    This might help: http://wordpress.org/support/topic/filter-an-array


    Twitter: cehwitham Web: cehwitham.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.