Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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);

    #1410565

    Hey 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,
    Ismael

    #1410581
    This reply has been marked as private.
    #1410666

    Hi,

    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,
    Ismael

    #1410677

    Dear 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

    #1410891

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.