-
hi
1 , it can only be changed by admin from backend2 . and this is from custom code if you add the code then you will be able to add the fields..
add_filter('wplms_course_creation_tabs','add_in_front_end'); function add_in_front_end($settings){ $fields = $settings['course_settings']['fields']; $arr=array(array( 'label' => __('custom','wplms-front-end'), // <label> 'desc' => __('custom','wplms-front-end'), 'text'=>__('custom','wplms-front-end' ),// description 'id' => 'vibe_custom', // field id and name 'type' => 'text', // type of field )); array_splice($fields, (count($fields)-1), 0,$arr ); $settings['course_settings']['fields'] = $fields; return $settings; }
Thanks
I already have code added.
To be clear, custom course desalt can only be added in the course backend ?I see where, but it does not work.
I also added to the course template.
see the test course I made:
https://wordpress-728966-2433567.cloudwaysapps.com/course/test-course/Thank You
hi
on your course layout I am unable to get the field that you have added can you share any screenshots?Please check this:
1- Added custom course details to back end of course Test Course.
https://prnt.sc/2DDGQBMu7sxK2- Now they will show in course description:
https://prnt.sc/IaCjFxCAubSI3- However, they do not appear in test course admin front end:
all the way down,
https://prnt.sc/edzkxNALN9ce
Not sure where the no of pdh units listed is from.4- Now, see the Udemy course layout template where course detail was added to template:
https://prnt.sc/cksS1Q09099rI am missing something.
Thank Youhi
as in the settings section the value in the custom field is not saving so please try this:
try to add this code in wplms-customizer.php
in wp-admin>>plugins>>plugin editor>>select wplms customizer pluginadd_filter('wplms_course_creation_tabs','add_in_front_end'); function add_in_front_end($settings){ $fields = $settings['course_settings']['fields']; $arr=array(array( 'label' => __('custom','wplms-front-end'), // <label> 'desc' => __('custom','wplms-front-end'), 'text'=>__('custom','wplms-front-end' ),// description 'id' => 'vibe_custom', // field id and name 'type' => 'text', // type of field 'from'=>'meta' )); array_splice($fields, (count($fields)-3), 0,$arr ); $settings['course_settings']['fields'] = $fields; return $settings; }
That’s the same code I added earlier.
Please check wplms customizer plugin to see.
Thank YouThank You Very Much.
Its not saving yet.
What you saw was values entered on the course back-end, once I removed them from the back-end, values do not show up anymore.
I enter one custom course detail (course no. in the front end, as you see in this pic,
https://prnt.sc/sLEP47s6t0cy
It did not show on the course:
https://wordpress-728966-2433567.cloudwaysapps.com/course/test-course/Another thing to note, if you look at the image shared above, down in the middle, there is: Set no of PDH units,
That is the other custom detail, I don’t know where its from, but it also does not show on the course.The custom course details work fine from the back end, not from the course front end.
Also, do I need to enable Full Course Status in Course pages. [No BP Single Page] in Course Settings.
Thank You
-
This reply was modified 1 month, 1 week ago by
hashur.
Hi I want to know exactly where did you add the custom code for the ” Set number of pdh units
” field in course settings .I did not add this setting, I only added the custom course details.
I wish it works,.Alex:
That is a link to an image, has the site name (pdhsource.com).
The set no of pdh units could be (may be) from an add on plugin, you developed for me:
WPLMS Custom Certificate Codes
you can see it in active plugins, may be it needs update.
I needed it to have no of pdh units on the certificate. -
This reply was modified 1 month, 1 week ago by
The topic ‘Upgrade to v4’ is closed to new replies.