Shortcode for simple edits

Community Forums Forums General Discussion Shortcode for simple edits

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Jen Baumann 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4976

    reckoner41
    Participant

    I want to customize the post meta to show only the first category. Here is the shortcode I am using:

    [post_categories sep=", " before="In: "]

    What should I add to only show the first category the post is in?

    #5095

    Jen Baumann
    Keymaster
    Post count: 325

    The shortcode isn’t going to do that. You’ll have to dig into some code.

    http://codex.wordpress.org/Function_Reference/get_the_category#Show_the_First_Category_Name_Only


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

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

You must be logged in to reply to this topic.