-
AuthorPosts
-
January 7, 2020 at 11:28 pm #1171275
Hello
Based on the
av_blog shortcode
and the loop-index.php i created a custom shortcode which shows meta-data, a forward button and a masonry gallery for each element of a chosen taxonomy. The masonry gallery is created with theav_masonry_gallery
shortcode, where the ids of the images are dynamically adjusted according to the element.Before christmas the customer updated the system (WP 5.3.2 and Enfold 4.6.3.1) and now the galleries are no longer displayed correctly. This means that the gallery of the first entry is displayed correctly, the remaining galleries are located outside the wrap_all container and therefore cover the whole screen width.
I would be glad if you could help me to solve this problem. With wordpress 5.2 and Enfold 4.6 everything worked fine.
The link to the website as well as the source code of my customizations can be found in the private data of the post.
Many thanks in advance
January 9, 2020 at 5:07 am #1171685Hey Jeannette,
Thank you for the inquiry.
The filter provided in the following thread should help.
// https://kriesi.at/support/topic/trouble-with-the_content-and-advanced-layout-editor/#post-1119884
This will allow execution of shortcodes that are not directly added in the advance layout builder.
Best regards,
IsmaelJanuary 10, 2020 at 2:10 pm #1172160Hi Ismael
Many thanks for your answer.
I’ve added the filter to the functions.php but with no luck. The problem still exists.In the meantime I found out that during the update only Enfold was updated from version 4.5.1 to 4.6.3.1. WordPress was already installed in the latest version 5.3.2.
January 10, 2020 at 7:00 pm #1172287Hi
I just found out that the problem only occurs when i insert the Masonry Gallery in the custom loop-index.php with
do_shortcode("[av_masonry_gallery ...]")
Is there an alternative way to use the ALB shortcodes without
do_shortcode()
?Thanks
JeannetteJanuary 13, 2020 at 3:25 am #1172616Hi,
Thank you for the update.
Try to replace the filter with the following code.
/** * Allow to force execution of shortcodes e.g. for plugins who call shortcode via an ajax call. * Enfold uses this to execute the shortcode for modal popup preview in backend * * @since 4.5.7.2 * @param boolean * @param aviaShortcodeTemplate $obj_sc * @param array $atts * @param string $content * @param string $shortcodename * @param boolean $fake * @return boolean true if sc should be executd regardless of page structure - same as popup preview */ function my_custom_exec_sc_only( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake ) { return true; } add_filter( 'avf_alb_exec_sc_only', 'my_custom_exec_sc_only', 10, 6 );
Or post the WP and FTP login details in the private field so that we can check the issue further.
Best regards,
IsmaelJanuary 13, 2020 at 2:20 pm #1172791Hi Ismael
Great, this did the trick! Thank you so much.
Kind regards
JeannetteJanuary 14, 2020 at 6:50 am #1173090 -
AuthorPosts
- You must be logged in to reply to this topic.