Conflicts with Formidable Forms
-
Hey, I’m the Formidable forms plugin developer, and we’re running into some conflicts with your page view plugin. We store the form id in the menu order field, but the page view plugin is doing a blanket menu order change with calls like this:
$wpdb->query( $wpdb->prepare( “UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_parent = %d AND menu_order >= %d AND id <> %d “, $post_ref_node->post_parent, $post_ref_node->menu_order, $post_ref_node->ID ) );As long as there is a post parent, that call is fine, but if there isn’t, than it changes a lot more posts than intended
Is it possible to go through and make calls like this more specific?
$wpdb->query( $wpdb->prepare( “UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_type = %s AND post_parent = %d AND menu_order >= %d AND id <> %d “, $post_ref_node->post_type, $post_ref_node->post_parent, $post_ref_node->menu_order, $post_ref_node->ID ) );
- The topic ‘Conflicts with Formidable Forms’ is closed to new replies.