ACF Custom Post Type + Custom Post Taxonomy not populate
-
WordPress: 6.4.2
Contact Form 7: 5.8.5
Post My CF7 Form: 6.0.6
PHP: 7.4 also 8.3I’ve create custom post type and custom taxonomy with ACF plugin, then I follow the tutorial on YouTube but checkbox not show any taxonomy
the form template I use = [checkbox* form_country use_label_element]
this is the setup before “save”
then after save, taxonomy name disappeared (not sure why)
I’ve insert the contact form shortcode via block editor
but option for this checkbox not show any
please help, thanks
-
then after save, taxonomy name disappeared (not sure why)
any js errors on your page?
When you map a field to a taxonomy, you need to edit the taxonomy mapping and select the taxonomy to which you want to map to.
To test to see if you are doing this correctly, please try to map your form to the default ‘post’ type and ‘categories’ taxonomy. If it is not working then there is something wrong with your server and you need to debug. If it is working, then the issue could be with the ACF plugin, many people have reported issues with ACF created meta data as it uses custom formats.
This plugin was created (and works with) WP core functionality, creating post types, taxonomies and meta fields using WP core functions.
I’ve try with a fresh wordpress install with these plugins
- Contact Form 7
- Post My CF7 Form
- CF7 Smart Grid Design Extension
*no javascript error on the page
Test Cases
A: Normal Checkbox: no checkboxes shown
B: Normal Dropdown: no options shown
C: Dynamic Checkbox: no checkboxes shown
D: Dynamic Dropdown: options shown, but not getting the selected data
after test case “D” I got this
` wp-core version: 6.4.2
site_language: en_US
user_language: en_US
timezone: Asia/Bangkok
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: undefined
environment_type: production
user_count: 1
dotorg_communication: true wp-paths-sizes wordpress_path: /Users/kataroek/Sites/test-wp
wordpress_size: 54.02 MB (56648558 bytes)
uploads_path: /Users/kataroek/Sites/test-wp/wp-content/uploads
uploads_size: 6.48 MB (6797027 bytes)
themes_path: /Users/kataroek/Sites/test-wp/wp-content/themes
themes_size: 12.06 MB (12645110 bytes)
plugins_path: /Users/kataroek/Sites/test-wp/wp-content/plugins
plugins_size: 10.17 MB (10664535 bytes)
database_size: 2.16 MB (2260992 bytes)
total_size: 84.89 MB (89016222 bytes) wp-active-theme name: Twenty Twenty-Four (twentytwentyfour)
version: 1.0
author: the WordPress team
author_website: https://www.remarpro.com
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
theme_path: /Users/kataroek/Sites/test-wp/wp-content/themes/twentytwentyfour
auto_update: Disabled wp-themes-inactive (2) Twenty Twenty-Three: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.6, author: the WordPress team, Auto-updates disabled wp-plugins-active (5) CF7 Smart Grid Design Extension: version: 4.15.6, author: Aurovrata V., Auto-updates disabled
Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
Contact Form 7: version: 5.8.5, author: Takayuki Miyoshi, Auto-updates disabled
Custom Post Type UI: version: 1.15.1, author: WebDevStudios, Auto-updates disabled
Post My CF7 Form: version: 6.0.6, author: Aurovrata V., Auto-updates disabled wp-plugins-inactive (2) Akismet Anti-spam: Spam Protection: version: 5.3, author: Automattic - Anti-spam Team, Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1809
imagemagick_version: ImageMagick 7.1.1-23 (Beta) Q16-HDRI aarch64 b135bacc6:20231210 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 64M
upload_max_filesize: 128M
max_effective_size: 64 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 64 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 3648
imagick::RESOURCETYPE_MAP: 32 GB
imagick::RESOURCETYPE_MEMORY: 16 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 0
imagemagick_file_formats: 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVS, B, BAYER, BAYERA, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, ERF, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PWP, QOI, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, Y, YAML, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP
ghostscript_version: not available wp-server server_architecture: Darwin 23.2.0 arm64
httpd_software: nginx/1.22.1
php_version: 7.4.33 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 128M
php_post_max_size: 64M
curl_version: 8.5.0 OpenSSL/3.1.4
suhosin: false
imagick_availability: true
pretty_permalinks: true
current: 2024-01-10T01:56:40+00:00
utc-time: Wednesday, 10-Jan-24 01:56:40 UTC
server-time: 2024-01-10T08:56:39+07:00 wp-database extension: mysqli
server_version: 11.2.2-MariaDB
client_version: mysqlnd 7.4.33
max_allowed_packet: 16777216
max_connections: 151 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /Users/kataroek/Sites/test-wp/wp-content
WP_PLUGIN_DIR: /Users/kataroek/Sites/test-wp/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined wp-filesystem wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writabledo I need to put any code in functions.php or add javascript ?
thanks
I will check on my server tomorrow morning and get back to you.
then after save, taxonomy name disappeared (not sure why)
interesting, possibly due to a character conversion issue when being saved in the back-end.
I’ve insert the contact form shortcode via block editor
please use the shortcode block (not the CF7 block) and insert the cf7 shortcode itself.
- The topic ‘ACF Custom Post Type + Custom Post Taxonomy not populate’ is closed to new replies.