Forum Replies Created
-
AuthorPosts
-
Matthias Nettekoven
ParticipantNevermind, the code part I used was using get posts which does not seem to work for the order. I switched over to WP Query. Any reason why the order does not work for get posts? The relationship query works as intended but not the order.
Matthias Nettekoven
ParticipantAnyone? The args above are referring to a default WP Query.
Matthias Nettekoven
ParticipantThanks. Update did solve it ๐
Matthias Nettekoven
ParticipantHi,
this still does not work even after updating. According to the change log it was fixed but when I test it, boxes are still un-collapsed.
'clone' => true, 'sort_clone' => true, 'collapsible' => true, 'default_state' => 'collapsed',The save state is no option since it will blow up the array. Any help on this would be great. Its been a month now.
March 13, 2019 at 4:37 PM in reply to: โ Relationship 'Post' edit screen even if 'post_type' => 'product' only #13712Matthias Nettekoven
ParticipantHi,
thanks that was it ๐ Appreciate your help.
Matthias Nettekoven
ParticipantHi,
if you make use of the save state, but what if this should not be saved?
March 10, 2019 at 4:02 PM in reply to: โ Relationship 'Post' edit screen even if 'post_type' => 'product' only #13640Matthias Nettekoven
ParticipantHi,
I'm not using the user relations at all.
I'm just having relations between post custom terms and custom post types. Which I assume is the reason for the behavior.
So I have custom taxonomy which I added to "Posts". Since I need the same taxonomy all over different Custom Post Types, I made a relation between them. Example:
MB_Relationships_API::register( array( 'id' => 'events_to_units', 'from' => array( 'object_type' => 'term', 'taxonomy' => 'units' ), 'to' => array( 'post_type' => 'events', 'meta_box' => array( 'title' => 'Add Unit' ) ), ) );Now there is a select "Event" Relation Meta box below each post. But I never added a relation between post and CPT.
Hope that helps to understand my issue.
Matthias Nettekoven
Participant@Anh Tran,
are you aware of the issue? The state entered inside the array is not parsed into the final data HTML attribute output as far as I can see.
March 9, 2019 at 7:33 PM in reply to: โ Relationship 'Post' edit screen even if 'post_type' => 'product' only #13627Matthias Nettekoven
ParticipantHi,
having the same issue. Were you able to solve this?
Matthias Nettekoven
ParticipantHi,
we are experiencing the same issue.
array( 'id' => $this->prefix . '_event_guests', 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'collapsible' => true, 'default_state' => 'collapsed', 'save_state' => true, 'name' => esc_html__('Guests', 'ceps'), 'group_title' => array( 'field' => 'name' ), 'fields' => array( array( 'name' => 'Name', 'id' => 'name', 'type' => 'text', ), array( 'name' => 'Description', 'id' => 'description', 'type' => 'textarea', ), )When refreshing the page, the tabs are not collapsed. Only when manually triggering them the state gets saved.
Latest Version of both plugins installed.
-
AuthorPosts