Forum Replies Created
-
AuthorPosts
-
March 4, 2016 at 12:07 AM in reply to: Taxonomy - select_advanced - multiple => true ---- Problems #2416
ClementN
ParticipantGreat.. Thank you. It works..
Best regards,|
ClementClementN
ParticipantP.S. - The previous behavior is for clone true fields
ClementN
ParticipantJanuary 21, 2016 at 3:52 PM in reply to: โ Include/Exclude for new/existing posts - Not saving data #2177ClementN
ParticipantMy need is to have 2 different metaboxes (in terms of design and functionality) for new and editing page.
For new page, we have only a few fields and for editing page we have a lot more using tabs, this time.
So, the fields from the "New" will be in the "Editing, too .
This is why the conditional hide is not so useful because it will create 2 different metaboxes containing same field ids.But I found a solution and please let me know if you see any problem using it.
I still use include/exclude for the 2 metaboxes BUT I use identical id for each one.
That way, during the saving process, Metabox.io will use the fields id from the second MB which will be the same as the ones inserted by the user in the New Page MB .
For me, this seems to be the problem initially (not verified into the code). During the saving process, MB is recreating the metabox to save it.
But during that step.. it seems like for MB the New Page condition is false as it is not on that stage anymore. So it generate the Metabox B with its fields for saving ...
But Metabox B was not displayed so it has no field to be saved..Using my solution ( same ID for both metaboxes) it seems like I trick the process to consider the fields values from the New Post screen as a Metabox for a non-New Post screen.
I hope I was clear with my explanations..
January 21, 2016 at 2:05 AM in reply to: โ Include/Exclude for new/existing posts - Not saving data #2171ClementN
ParticipantClementN
ParticipantHello, For other people with same need .. I solved the problem using the method bellow genereting different metaboxed based on the output of the is_edit_page function:
ClementN
ParticipantThank you. I had the feeling it has something to do with that field ๐ Thank you.
ClementN
ParticipantThank you very much!
-
AuthorPosts