Caching/duplication when calling cmb2_metabox_form
-
I want to display 3 posts with their values pre-filled on the front end. All 3 posts are of the same type and have the same meta box id. When I call cmb2_metabox_form 3 times, every time providing the id of the post, the first post that I provide is duplicated 3 times
e.g.
cmb2_metabox_form(“mytype”, 1);
cmb2_metabox_form(“mytype”, 2);
cmb2_metabox_form(“mytype”, 3);The output is the form corresponding to post id 1 repeated 3 times. Is there some sort of caching at work?
All 3 ids exist. I’m using CMB2 in wordpress.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Caching/duplication when calling cmb2_metabox_form’ is closed to new replies.