![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: ALB, CPT, Events Manager Pro
-
AuthorPosts
-
June 13, 2023 at 11:26 am #1410429
Hi, i am trying to enable ALB for Events using the “Events Manager Pro” Plugin. I tried to add the following functions that i found here in the forum, but it does not show the ALB-Button so far. the Custom Post Type Name should be “event”.
Do you have a hint? Thanks!function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = ‘event’;
return $supported_post_types;
}
add_filter(‘avf_alb_supported_post_types’, ‘avf_alb_supported_post_types_mod’, 10, 1);// For layout meta box
function avf_metabox_layout_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = ‘event’;
return $supported_post_types;
}
add_filter(‘avf_metabox_layout_post_types’, ‘avf_metabox_layout_post_types_mod’, 10, 1);June 14, 2023 at 11:01 am #1410565Hey flogee,
Thank you for the inquiry.
The filter above should have worked. Please provide the login details in the private field so that we can check the issue further. Have you tried purging the cache?
Best regards,
IsmaelJune 14, 2023 at 1:49 pm #1410581This reply has been marked as private.June 15, 2023 at 8:05 am #1410666Hi,
Thank you for the info.
We have added the filter in the functions.php file and created a test page (see private field). Please be aware that activating the ALB will remove all default elements or content from the event page. It is possible that certain features may not function as expected when ALB is enabled.
Best regards,
IsmaelJune 15, 2023 at 9:58 am #1410677Dear Ismael, thats great its working now! but did you overwrite the functions.php? it now only has the ALB code, but there were many others. did you make a backup of the functions.php file first? thanks
June 16, 2023 at 6:18 am #1410891Hi,
but did you overwrite the functions.php? it now only has the ALB code, but there were many others.
The functions.php file was actually empty before we added the filter. Are there any other users who have access to the site? You might need to restore the functions.php file using a backup or a restore point.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.