Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Teja

    (@teja8792)

    Installed CMB2 as a plugin and it worked. Thanks. How can i use CMB2 as library?

    i want to create the custom-plugin and its folder structure is:

    custom-plugin(folder)
    /custom-plugin.php
    /inc(folder)
    /inc/CMB2(folder)
    /inc/cmb2-front-end-submit.php

    Please tell me how to include the CMB2 to avoid the error.
    I have another request regarding frontend, do i need to create new topic?

    I want to custom taxonomy (category & tags) in frontend. I added new field with taxonomy_select but its not saving the assigned taxonomy.

    Thank you.

    Thread Starter Teja

    (@teja8792)

    The above code is placed in the plugin-functions.php, I am using the CMB2 folder as library(not downloaded from ww.wp.xz.cn). And i am testing in the localhost.

    Thread Starter Teja

    (@teja8792)

    I included the cmb2-front-end-submit.php like this.

    if ( file_exists( dirname( __FILE__ ) . ‘/cmb2/init.php’ ) ) {
    require_once dirname( __FILE__ ) . ‘/cmb2/init.php’;
    } elseif ( file_exists( dirname( __FILE__ ) . ‘/CMB2/init.php’ ) ) {
    require_once dirname( __FILE__ ) . ‘/CMB2/init.php’;
    }
    require_once(‘cmb2-front-end-submit.php’);

    I ran into the error again. I am new to the coding, help me out.

    Thank you.

    Thread Starter Teja

    (@teja8792)

    The file (https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/front-end/cmb2-front-end-submit.php) was included(using require_once function) in plugin functions. No changes done to the file. I included CMB2 in plugin-function.php.
    Do i have to include CMB2 in cmb2-front-end-submit.php file too?

    folder structure.
    -plugin-functions.php
    -inc/CMB2
    -inc/cmb2-front-end-submit.php

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)