Teja
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Front end post saving errorInstalled 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.phpPlease 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.
Forum: Plugins
In reply to: [CMB2] Front end post saving errorThe 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.
Forum: Plugins
In reply to: [CMB2] Front end post saving errorI 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.
Forum: Plugins
In reply to: [CMB2] Front end post saving errorThe 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.phpThank You.