Custom Fields
Re-Envisioned
Support MB Term Meta Custom Fields > Produkt Categories > Oxygenbuilder

  • Creator
    Topic
  • #32504
    Resolved David Keiser
    Participant

    Hi,

    i´ve created a field group for product categories. So far so good it works an I can see and edit the additional text-field inside the Product-Category.

    Now I´ve tried to add the custom field into my oxygenbuilder Shop archive template and there is no data available. It´s possible to grap the standart Category-description but not the new custom field. Is there any PHP I can try or how could I solve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #32507
    Long Nguyen
    Moderator

    Hi David,

    For plugins that officially support Meta Box, like Oxygen Builder, please reach to them if you have any issue with installation, configuration, compatibility, or usage. Refer to our support policy https://metabox.io/support/topic/support-policy/

    #32508
    David Keiser
    Participant

    Hi Long, thx for reply.

    Is there any possebility to show the custom fields before the Category Description so I can add into a snippet (Plugin)?

    #32533
    Wolfgang
    Participant

    Hey there,
    funny that the same problem occurs in 2 Days! 😉

    I've nearly the same problem, but I'm using the rwmb_meta() helper function. I'm not sure if I have to use the $post_id parameter, and if so which ID I should use!

    TIA for your help!

    #32534
    Wolfgang
    Participant

    Ok, I think I got this wrong ... there is of course no post_id for the categories, so rwmb_meta() won't help here much.

    However you can query the $term_meta and get your custom field with the following snippet:

    <?php
    $term_ID = get_queried_object()->term_id;
    $term_meta = get_term_meta($term_ID);
    echo $term_meta['YOUR_FIELD_NAME'][0];
    ?>
    

    Hope that will help you as well David!

    #32565
    David Keiser
    Participant

    Hi Wolfgang,

    thx for the help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.