WordPress.org

Ready to get started?Download WordPress

Forums

referenting OptionTree metabox values (3 posts)

  1. rsimko
    Member
    Posted 1 year ago #

    Hello,
    I am using OptionTree in theme mode together with Roots starters theme.
    I managed to set up options, activate and add metaboxes. Everything seems to work fine except ot_get_option( $option_id) doesn't seem to pull the information from metabox field. It works fine from theme option panel though. It is highly likely I am doing something wrong since I am not experienced programmer.

    Example:
    I have a metabox field with id set to quote_source
    if I echo out ot_get_option( quote source ) I do not get anything.
    What am I doing wrong?

  2. hozefze
    Member
    Posted 1 year ago #

    Hello,

    I have the EXACT same issue. Setting metaboxes using OptionTree works fine, but HOW TO ACTUALLY RETRIEVE THE SAVED DATA???

    I tried to use get_post_meta() but apparently this is not where the data is saved as there is no trace of my metaboxes data.

    Checked using:
    <?php $test = get_post_meta($post-ID); print_r($test); ?>

    $post-ID is the correct ID of the page, verified that already.

    Please advise!

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @hozefze: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

Topic Closed

This topic has been closed to new replies.

About this Topic