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

    (@miyarakira)

    If it’s inside [loop] then the following should do it:

    [for each=category count=1][each name][/for]

    If it’s not in a loop then you can add current=true. For details, please see the documentation under Taxonomy -> For/Each.

    The taxonomy terms (in this case categories) are ordered alphabetically by default. So, the above will display the first term of the list.

    Thread Starter malichai1981

    (@malichai1981)

    Beautiful! Thanks. I must’ve read that wrong originally. I was trying to use taxonomy=category in the for loop instead of each=category.

    Thread Starter malichai1981

    (@malichai1981)

    My fault it is still not working.

    Does it work for custom categories?

    Plugin Author Eliot Akira

    (@miyarakira)

    Yes, it should work for any taxonomy.

    [for each=taxonomy_name current=true count=1][each name][/for]

    Are you sure you have the correct taxonomy name? You can check under Dashboard -> Content -> Taxonomy, to get the taxonomy slug.

    Plugin Author Eliot Akira

    (@miyarakira)

    Oops, I tested this and see that it’s not working correctly. I will make a plugin update soon, I’ll let you know when this is fixed.

    Plugin Author Eliot Akira

    (@miyarakira)

    OK, now it should be working. Could you confirm?

    Thread Starter malichai1981

    (@malichai1981)

    Now it works! Thanks so much for the help. I love this plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display one category per post’ is closed to new replies.