WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Taxonomy Manager
Categories's custom fields via php, not from shortcodes (5 posts)

  1. Pigi_the_digg
    Member
    Posted 2 years ago #

    Hello, thanks for the plugin; i've create a custom fields in a category called screenshot, and i need to call the value in the category.php but i don't know how.

    Can you help me please?

    http://wordpress.org/extend/plugins/ultimate-taxonomy-manager/

  2. cypl
    Member
    Posted 2 years ago #

    Hello,
    i need the same thing. Did you find a solution ?
    thx

  3. jonyby
    Member
    Posted 1 year ago #

    Hi all,
    You should use taxonomy metadata to get custom taxonomy fields. So, it looks like this:

    $custom_field_value = get_metadata("taxonomy", $taxonomy_term_id, $custom_taxonomy_field_name, TRUE);

    Best regards,
    Evgeniy.

  4. Astony
    Member
    Posted 1 year ago #

    So if I have a field name called "link" in Custom Taxonomy Fields, can I output it from the template (loop.php) like this?

    echo get_metadata('taxonomy', $taxonomy_term_id, $link, TRUE);

    ...because this doesn't work. :(

  5. jonyby
    Member
    Posted 1 year ago #

    Hi, Astony.

    Please try this ('link' string instead of $link variable)

    echo get_metadata('taxonomy', $taxonomy_term_id, 'link', TRUE);

    ...and make sure that $taxonomy_term_id is the correct ID of existing taxonomy term.

    Thanks,
    Evgeniy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic