Custom Fields
Re-Envisioned
Support General Get Custom Field in functions.php

  • Creator
    Topic
  • #23983

    Hello, can you help me please. I want get the custom field in functions file. What is the best approach?

    The next no work for me

    
    function query_crm_usados_interna(){
     $meta = rwmb_meta( 'if_usados_usad_id',get_the_ID() )
    return $meta;
    }
    
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #23987
    Long Nguyen
    Moderator

    Hi,

    If you needn’t the extra arguments, please leave the second argument empty.

    function query_crm_usados_interna(){
     $meta = rwmb_meta( 'if_usados_usad_id', '', get_the_ID() )
    return $meta;
    }

    Get more details in the documentation https://docs.metabox.io/rwmb-meta/#arguments.

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