completly lost here

Support MB Term Meta completly lost hereResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30298
    PinyadaPinyada
    Participant

    just bought the plugin, hopeing to have a solution to my problem.
    Want to show on frontend of an elementor template dynamically 10 text fields created within a custom child taxonomy. (i dont use the fields in any archive. whatsoever)
    Can create the fields via MetaTerm but than what.?
    I have to go to the "get PHP code" button and put the code in the theme's functions.php file?

    And then go to Elementro pro "custom code snippet" to add custom code from following page: https://docs.metabox.io/displaying-fields/#using-code
    $value = rwmb_meta( $field_id, $args = [], $post_id = null ); echo $value;

    By doing both steps, i cant get my field to show up. I can see the term name show up but also without step 1 it shows up.
    What iam doing wrong here.?
    Peter

    #30305
    PinyadaPinyada
    Participant

    "I have to go to the "get PHP code" button and put the code in the theme's functions.php file?"
    Seems not needed, as i see it shows up twice now in the backend.

    So my only question is how i can fetch this data in elementor. (i installed JetEngine as well and with them i can fetch it without problem.)

    Many Thanks in Advance.
    Peter

    #30312
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Follow your ticket in our ticket system, it is not possible to get the term meta from the post page with Elementor page builder. Refer to this topic https://support.metabox.io/topic/accessing-category-custom-field-at-post-level-in-elementor/

    You can create the custom code to get the term meta from a single post. Here are some guidelines:
    - Get terms of the post: https://developer.wordpress.org/reference/functions/get_the_terms/
    - Get term meta from terms: https://docs.metabox.io/extensions/mb-term-meta/#getting-field-value

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