Reordering breaks assignment of Toolsets Layouts
-
Hi there!
I tried to reach out for help on your website, but didn’t get a response in the last few weeks. So I’m trying here again …I’m working with custom post types and layouts created with the Toolset Plugins (wp-types.com). Since September there weren’t any compatibility issues. But now reordering my pages breaks the assignment of my layouts. All of my layouts, which were assigned to a specific post or page, aren’t assigned anymore. I always have to reassign them after reordering the pages with your plugin (regardless if I update the sorting automatically or manually).
I first thought, the compatibility issue is on the side of Toolset. But their support team figured out, that the problem is with your plugin. They gave me this hints:
– Toolset saves the layouts template for the page in a post meta with the key “_layouts_template”
– When the user reorders the pages, the nested pages plugin resets this meta from the previously selected value to “single-page”
– This happens in the nested pages plugin code in file \wp-content\plugins\wp-nested-pages\app\Entities\Post\PostUpdateRepository.php at line 49 which is:wp_update_post(array(
‘ID’ => sanitize_text_field($post[‘id’]),
‘menu_order’ => $key,
‘post_parent’ => $parent
));How can I get your plugin get to work with Toolsets Layout again? Please for help!
Kind regards, Diana
- The topic ‘Reordering breaks assignment of Toolsets Layouts’ is closed to new replies.