• Resolved Sergey Filimonov

    (@tunecatcher)


    Hello!

    I have a custom post type ‘instareview’ and a taxonomy for it ‘instarevcat’. There is a category in the taxonomy ‘newyork’. So I want to show in a post only the content from this category. So I go:

    [loop type=instareview instarevcat=newyork]
    [content]
    [/loop]

    But the plugin shows all the posts of the type ‘instareview’ skipping the category.

    If I change the code to:
    [loop type=instareview category=newyork]
    [content]
    [/loop]

    Nothing is shown.

    For custom post type I use Custom Post Type UI plugin.

    Please help me with this.

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    For a custom taxonomy, please try like this:

    [loop type=instareview taxonomy=instarevcat term=newyork]
    Thread Starter Sergey Filimonov

    (@tunecatcher)

    Thank you, Ellot! It’s working!

    Plugin Author Eliot Akira

    (@miyarakira)

    Good to hear, I’ll see if I can improve the documentation on this point.

    Hi Eliot,

    i have a similar problem.

    In Portfolio Post Type i want to show the other portfolios from same category, but sorting by category doesn’t work :-/
    i only can see all (excluding “this” post) or no posts…

    [loop type=portfolio portfolio_category=this exclude=this]
    [field thumbnail-link]
    [/loop]
    
    [loop type=portfolio taxonomy=portfolio_category term=this exclude=this]
    [field thumbnail-link]
    [/loop]
    
    [loop type=portfolio taxonomy=portfolio_category term=custom-category exclude=this]
    [field thumbnail-link]
    [/loop]

    Thanks in advance,
    Nils

    Plugin Author Eliot Akira

    (@miyarakira)

    Hi Nils,

    The [related] shortcode can be used for showing other posts in the same taxonomy. This is in the documentation under Main -> Taxonomy. If you have further questions, please start another support thread for this, so we can discuss it separately.

    Thx Eliot,
    i had overlooked this solution

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Categories don't work’ is closed to new replies.