This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Custom Taxonomies to Post Grid

  • Creator
  • #2783

    Hi –

    I’m wondering if there is a way to add custom taxonomies to the post grid/list short code parameters or in the theme options.



Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
  • #2789
    Jason Bobich

    I believe you can do it by using the query parameter something like this:

    [post_list query="post_type=foo&your_taxonomy=bar"]

    Okay, thanks. How about taxonomy terms as slugs? I’d like to use them the same way categories are defined in shortcodes for post lists and grids. Thanks again.

    Jason Bobich

    Take another look here:

    [post_list query="post_type=foo&your_taxonomy=bar"]

    So in this example “your_taxonomy” would be the ID of your taxonomy and “bar” would the slug of the term. I can’t think of any other way to accomplish what you’re asking.

    Maybe a practical example would help:

    Post Type: book
    Taxonomy: author
    Term: orwell

    [post_list query="post_type=book&author=orwell"]
    [post_list query="post_type=book&author=shakespeare,orwell,rowling"]

    Ahh, great, that makes sense. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.