Tagged: advanced layout builder, Custom Post Type
-
AuthorPosts
-
November 25, 2020 at 3:55 pm #1263020
Hi
We use CM Maps Routes Manager in the current version 4.5.5. For the route description we have activated the ALB, as recommended in the ALB documentation:
add_filter( 'avf_alb_supported_post_types', function( array $supported_post_types ) { $supported_post_types[] = 'cmmrm_route'; // CM Maps Routes Manager Pro return $supported_post_types; } );
To edit the waypoints the plugin has its own editor. If we make and save changes in this editor and then make and save adjustments in the ALB of the route description, all pages with activated ALB are displayed faulty.
When saving the route description the valuesav_alb_usage_{element}
in thewp_options
table seem to be overwritten incorrectly. Below are some examples:
before:(385, 'av_alb_usage_av_section', 'a:3:{i:159;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:4;}i:20;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:2;}i:24;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:1;}}', 'yes'),
after:(385, 'av_alb_usage_av_section', 'a:1:{i:159;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:4;}}', 'yes'),
before:(386, 'av_alb_usage_av_textblock', 'a:3:{i:159;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:6;}i:20;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:1;}i:24;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:6;}}', 'yes'),
after:(386, 'av_alb_usage_av_textblock', 'a:1:{i:159;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:6;}}', 'yes'),
before:(396, 'av_alb_usage_av_iconlist_item', 'a:1:{i:24;a:2:{s:7:\"version\";s:3:\"1.0\";s:5:\"count\";i:3;}}', 'yes'),
after:(396, 'av_alb_usage_av_iconlist_item', 'a:0:{}', 'yes'),
159 is the ID of the route we have processed. It seems that only the elements used in this entry are listed.
As soon as we select the setting in the Enfold settings that all ALB elements should always be loaded, all pages will always be displayed correctly. For performance reasons, we don’t want to leave this setting as it is.Do you have an idea what could be the cause of the problem?
Many thanks
November 30, 2020 at 12:31 pm #1263929Hey Jeannette,
I’m very sorry for the late reply. If it’s working as it should when you select to always load all elements, then I would suggest that you use that option and try to optimise your site in other ways, in order to compensate. We can’t provide custom solution for problems with third party plugins unfortunately.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.