• Resolved segan93

    (@segan93)


    First off I wanted to say great plugin!

    I am having trouble retrieving the value of a metabox field from within another plugin folder. Here is my setup:

    In my functions.php file I have the include path to my theme specific metabox file, in my plugins folder I have the rwmetabox plugin, and another plugin (let’s call it Plugin B). What I am trying to do in ‘Plugin B’ is: $layout_content = rwmb_meta( $se_layout_content, $layout_id );

    The $layout_id field is retrieving the value of a shortcode attribute (which corresponds with a custom post ID). I would like to grab the contents of my custom field based on that ID.

    I think the problem is that these two plugins do not know how to talk to each other, but I am not sure where to go from here. Would it be best to include the theme_metabox file inside of Plugin B, or is there a better approach?

    Let me know.

    Thanks!

    https://www.ads-software.com/plugins/meta-box/

Viewing 3 replies - 1 through 3 (of 3 total)
  • MeRuud

    (@meruud)

    I think I can help you, as I think there is a better way of doing what your trying to do. But I am not 100% sure what you are tying to accomplish, could you elaborate? Also where is your generated metabox displayed?

    Thread Starter segan93

    (@segan93)

    I ended up using get_post_meta() and everything is working flawlessly.

    MeRuud

    (@meruud)

    That’s what I was going to suggest, glad you got it working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Retrieve Meta Box Value from Another Plugin’ is closed to new replies.