Title: CMB2 installation &#8211; cannot get it to work
Last modified: August 22, 2016

---

# CMB2 installation – cannot get it to work

 *  Resolved [leanneoleary](https://wordpress.org/support/users/leanneoleary/)
 * (@leanneoleary)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/cmb2-installation-cannot-get-it-to-work/)
 * Hi,
 * I have followed the documentation on this page: [https://github.com/WebDevStudios/CMB2/wiki/Basic-Usage](https://github.com/WebDevStudios/CMB2/wiki/Basic-Usage)
   
   but cannot get it to work.
 * I have gone through other posts with the same issue and tried all of the suggestions
   and still nothing. This has left me confused onthe installation process.
 * Can someone confirm whether the following code is needed?
 * if ( file_exists( __DIR__ . ‘/cmb2/init.php’ ) ) {
    require_once __DIR__ . ‘/
   cmb2/init.php’; } elseif ( file_exists( __DIR__ . ‘/CMB2/init.php’ ) ) { require_once
   __DIR__ . ‘/CMB2/init.php’; }
 * and also whether the cmb2 folder should be installed in the theme folder or the
   plugin folder. Documentation says theme, installation page on wordpress says 
   plugin.
 * Also where should the code from example_functions.php go? Should it be in the
   functions.php file in the theme folder?
 * I have installed the plugin via wordpress and therefore the folder is installed
   in the plugins folder. I have then copied and pasted all of the code from example_functions.
   php into my functions.php file within my theme folder. I have then added the 
   below code to the page.php file in my theme folder.
 * $text = get_post_meta( get_the_ID(), ‘_cmb2_text’, true );
    echo $text;
 * Please help.

Viewing 1 replies (of 1 total)

 *  Thread Starter [leanneoleary](https://wordpress.org/support/users/leanneoleary/)
 * (@leanneoleary)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/cmb2-installation-cannot-get-it-to-work/#post-5692278)
 * I got help here:
    [https://github.com/WebDevStudios/CMB2/issues/154#issuecomment-70672906](https://github.com/WebDevStudios/CMB2/issues/154#issuecomment-70672906)

Viewing 1 replies (of 1 total)

The topic ‘CMB2 installation – cannot get it to work’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * 1 reply
 * 1 participant
 * Last reply from: [leanneoleary](https://wordpress.org/support/users/leanneoleary/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/cmb2-installation-cannot-get-it-to-work/#post-5692278)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
