Custom Fields > Produkt Categories > Oxygenbuilder

Support MB Term Meta Custom Fields > Produkt Categories > OxygenbuilderResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32504
    David KeiserDavid 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?

    #32507
    Long NguyenLong 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://support.metabox.io/topic/support-policy/

    #32508
    David KeiserDavid 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
    WolfgangWolfgang
    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
    WolfgangWolfgang
    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 KeiserDavid Keiser
    Participant

    Hi Wolfgang,

    thx for the help!

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