Unable to make it work with a CPT 🤔
-
Hi there…
Interesting pluging. I’m especially interested in adding location meta data to a custom post type (CPT) – let’s call it Point of Interest (PoI), but failed. When trying to add a new PoI, I get this error:
H<@https://boho.local/wp-content/plugins/ootb-openstreetmap/build/index.js?ver=db099a0defe87e6560eb:1:183621
mapSelect@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2352:64
updateValue/mapResult<@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2277:26
__unstableMarkListeningStores@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:1804:25
@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:1845:36
updateValue@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2276:36
@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2311:7
_useMappingSelect@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2327:54
useSelect@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2342:61
@https://boho.local/wp-includes/js/dist/data.js?ver=1756b6a2676c1b3369ab:2353:35
renderWithHooks@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:15496:29
mountIndeterminateComponent@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:20113:15
beginWork@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21636:18
beginWork$1@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27475:16
performUnitOfWork@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606:14
workLoopSync@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26515:24
renderRootSync@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26483:9
recoverFromConcurrentError@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25899:36
performSyncWorkOnRoot@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26145:22
flushSyncCallbacks@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:12052:24
commitRootImpl@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27008:5
commitRoot@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26731:21
finishConcurrentRender@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26030:21
performConcurrentWorkOnRoot@https://boho.local/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25858:31
workLoop@https://boho.local/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2653:44
flushWork@https://boho.local/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2626:16
performWorkUntilDeadline@https://boho.local/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2920:23This is on a local development machine, but I also tried on an online live installation.
Both sites run WP 7.0 and PHP 8.3
Adding a location to a regular Post, works just fine.
I created my CPT with Pods Framework like I’ve done many times before. I might try ACF as well.
Is that something you can reproduce? Or du you have any futher tips regarding setting up a CPT that plays well with OOTB?
Kind regards,
Bjarne
You must be logged in to reply to this topic.
