-
AuthorPosts
-
June 29, 2018 at 6:20 pm #979423
Custom Post Type (Case Studies) – Advanced Layout Builder – Spinning Wheel of Death
No plugins. Reinstalled WP & Enfold. Added debugging for WP and Enfold. Works on Pages, not on CPT. Any ideas?
PHP Version Tried 7.1 & 7.2.5
Memory Limit (memory_limit) 256M
Maximum Execution Time (max_execution_time) 30
Maximum File Upload Size (upload_max_filesize) 64M
Maximum File Uploads (max_file_uploads) 20
Maximum Post Size (post_max_size) 8M
Maximum Input Variables (max_input_vars) 1000
cURL Enabled Yes (version 7.54.0)
OpenSSL OpenSSL 1.0.2k-fips 26 Jan 2017 (268443839)
Mcrypt Enabled No
Mbstring Enabled Yes
Loaded Extensions Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, litespeed, posix, bcmath, imagick, imap, inotify, intl, PDO, dom, xmlreader, soap, xmlrpc, json, xmlwriter, pdo_mysql, fileinfo, gd, exif, zip, pdo_sqlite, mysqli, mysqlnd, Phar- This topic was modified 6 years, 5 months ago by armourcreative.
June 29, 2018 at 6:45 pm #979431Hi,
Have you referred to this post – https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#alb-for-any-post-type ? :)
Regards,
YigitJune 29, 2018 at 6:48 pm #979433Yes, I have this in my child functions.php. The Builder appears, I can add content, but when I save I get the spinny wheel. And the content does not display on the front-end.
/* Add Advanced Layout Builder to Case Studies */
add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
{
$meta[‘page’][] = ‘Case Study’; /*instead add the name of the custom post type here*/
}
}return $metabox;
}June 29, 2018 at 6:57 pm #979437Hi,
I changed the code to following one
/* Add Advanced Layout Builder to Case Studies */ add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'casestudy'; /*instead add the name of the custom post type here*/ } } return $metabox; }
Please review your website :)
Best regards,
YigitJune 29, 2018 at 7:28 pm #979446Huzzah! I had tried both “case-study” and “Case Study”, and when the latter *sorta* worked, I didn’t think to try “casestudy.” You’re the master!
June 29, 2018 at 7:44 pm #979448Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Custom Post Type – Advanced Layout Builder – Spinning Wheel of Death’ is closed to new replies.