Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter alexmkubik

    (@alexmkubik)

    I got “somewhere” using the pass shortcode.
    If I use this:

    [pass field="post-category"]
        [category="{FIELD}"]
    [/pass]
    [content field="post-category"]

    I get this on the rendered page:

    [category="Array"]

    Plugin Author Eliot Akira

    (@miyarakira)

    I recently added a parameter called taxonomy to the content shortcode – but haven’t got around to updating the documentation yet. The following displays post category and tags:

    [content taxonomy="category"]
    [content taxonomy="post_tag"]

    It works in a loop also.

    Thread Starter alexmkubik

    (@alexmkubik)

    And that’s how come ‘cuz you rock.

    Plugin Author Eliot Akira

    (@miyarakira)

    Heheh, thanks for the kind words. I’m glad you’re finding the plugin useful.

    Thread Starter alexmkubik

    (@alexmkubik)

    One other question… if the category has multiple words… can you use the slug? I’d like class=”high-performance-group” a lot more than class=”High Performance Group”

    Plugin Author Eliot Akira

    (@miyarakira)

    Do you mean you’d like to output the category slug using the content shortcode? Sure, if that’s what you want, and I can add that option.

    Thread Starter alexmkubik

    (@alexmkubik)

    Yes, that’d be great. I’m using the shortcode to assign a class to each post which matches the category name, so the slug would work best.

    Plugin Author Eliot Akira

    (@miyarakira)

    That makes sense about using the category slug for assigning a class. I have another issue/feature request about post status that I’m solving, so I’ll try to include both in the next update.

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello, please see the update to version 0.6.5. I added a new parameter to display the taxonomy slug:

    [content taxonomy="category" out="slug"]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Category as field’ is closed to new replies.