Tagged: custom layouts
-
AuthorPosts
-
January 21, 2026 at 2:26 pm #1494134
Hi Support,
I am very happy with the new future Custom Layouts.
I used ACF to make a new post type with several custom fields and used custom layouts to fill the custom post type. Looks perfect.However, when I import a larger amount of this custom post with WP all Import. The backend looks fine, all custom posts have been created but when I look at the frontend, the standard post template without ALB or ACF fields is shown.
I did the ‘Activate Your Custom Post Types For ALB’ in the Enfold options. The post type is set to public.
Can you help figure out what is going wrong?
Thanks in advance,
Ariane
January 22, 2026 at 5:49 am #1494154Hey ariane1001,
Thank you for the inquiry.
Custom layouts are a separate post type, so you’ll need to import those as well. The builder also relies on specific custom fields, so please make sure all custom fields or meta info attached to the posts are transferred too. Let us know the result.
Best regards,
IsmaelJanuary 22, 2026 at 10:05 am #1494173Hi Ismael,
Thanks for the quick reply. Can you give me any clue on how to do that. Where do i find the names of the custom fields attached to the post.
Thank you very much in advance!
Best regards,Ariane
-
This reply was modified 3 months ago by
ariane1001. Reason: added credentials
January 23, 2026 at 10:52 am #1494221Dear Ismael, support,
I’ve been thinking about the problem and I think the problem has 2 parts:
The import goes to the right custom post type, ‘portfoliobedrijven’ but in the post type the Avia builder is not activated. Secondly the builder should have the custom layout bedrijven/companytemplate in it.So how can I activate both automaticly when importing a new post, which custom fields should I use?
thanks so much in advance,
ArianeJanuary 23, 2026 at 11:22 am #1494222Hi,
Thank you for the update.
We may have misunderstood the inquiry slightly — for posts imported from another site, unfortunately, there is no way to automatically activate the Advanced Layout Builder or apply custom layouts. You’ll need to do this manually by editing the post, switching to the Advanced Layout Builder and then applying the custom layout. There is no option to activate the ALB for imported posts automatically.
Best regards,
IsmaelJanuary 23, 2026 at 11:27 am #1494224Hi Ismael,
I see, sorry to hear that. Looking around in the forum I found this post: https://kriesi.at/support/topic/importing-lots-of-data-to-scf-custom-posts-all-having-same-template/#post-1473195Is it possible this can work for my posts?
Looking forward to hear from you.
Regards,
ArianeJanuary 27, 2026 at 5:21 am #1494356Hi,
Thank you for the update.
Yes, you’re correct. The code from the previous thread should activate the ALB for a specific post type, but you need to import all entries first. After that, add the code to the functions.php file, make sure to replace the post type slug with your own and then refresh the WordPress dashboard or visit the front end. This will execute the hook and create the required post meta info or custom fields for the custom posts. You can remove the code afterward.
Best regards,
IsmaelApril 5, 2026 at 4:29 pm #1496604Hi Ismael,
After a lot of testing, my import is now working, but there’s still one issue.
I run the import, changes are applied, or new posts are created if necessary. In the back end, the imported posts look exactly the same as manually entered posts. Only in the front end are the imported posts empty. When I edit the post and save it manually, the post becomes visible.
Apparently, this is a common issue with WP All Import, but I can’t find a working solution. I’ve tried the following code in functions.php:add_action('pmxi_saved_post', function($post_id) { $post = get_post($post_id); if (!$post) return; // remove Enfold builder cache delete_post_meta($post_id, '_aviaLayoutBuilderClean'); // Save the content again via wp_update_post wp_update_post(array( 'ID' => $post_id, 'post_content' => $post->post_content, 'post_status' => $post->post_status, )); // Force Enfold to rebuild the builder cache update_post_meta($post_id, '_aviaLayoutBuilderClean', $post->post_content); });It would be great if you can help with this last step.
Thanks in advance,
ArianeApril 7, 2026 at 7:32 am #1496656Hi,
Thank you for the info.
We updated your hook above — let us know the result.
add_action('pmxi_saved_post', function($post_id) { $post = get_post($post_id); if (!$post) return; delete_post_meta($post_id, '_aviaLayoutBuilderClean'); update_post_meta($post_id, '_aviaLayoutBuilder_active', 'active'); });Best regards,
IsmaelApril 7, 2026 at 11:13 am #1496660Hi Ismael,
Thanks for your quick reply but this code is also not working. It’s really frustrating.
I ran a test and imported 5 posts using All Import. They appear fully in the backend. On the front end, they’re empty. When I look at the source code, I see that the Main section is empty—exactly where the content built with the Avia Builder should be.
If I manually save an imported post in the backend now, it does appear on the front end.
I was hoping the code would solve the problem, but unfortunately, it didn’t.
Do you have any ideas on what I could do to fix this?Thanks in advance!
ArianeApril 8, 2026 at 7:05 am #1496667Hi,
You should import all posts first, then run the hook from the previous thread just once to apply the custom layout. Add the code in the functions.php file and refresh the frontend or the dashboard to run the hook. This will apply the custom layout to the posts of the specified post type and activate the ALB. Make sure to create a site backup before proceeding.
Best regards,
Ismael -
This reply was modified 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
