Tagged: avia layout builder, custom post types
-
AuthorPosts
-
August 17, 2016 at 1:44 am #673445
I am trying to use Avia Layout Builder with the Espresso Events plugin which creates custom post type ‘espresso_events’.
I have added the necessary code to enable the layout builder on custom post types to the functions.php of my child theme (and tested it with a different custom post type that uses post.php to confirm that the code works). http://kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/
The problem I have come across is that because these events are edited through the admin.php page instead of the post.php page, the code I have inserted does not provide access to the layout builder on this page.
Please advise how we can enable the Avia Layout Builder of custom post types which are edited through the admin.php page.
Thanks in advance.
August 18, 2016 at 3:40 am #673976Furthermore, if I add
print_r($meta);
to the end of theforeach($metabox as &$meta)
loop I get the following output
( [title] => Avia Layout Builder [id] => avia_builder [page] => Array ( [0] => post [1] => portfolio [2] => page [3] => product [4] => espresso_events ) [context] => normal [priority] => high [expandable] => 1 ) Array ( [title] => Layout [id] => layout [page] => Array ( [0] => portfolio [1] => page [2] => post [3] => espresso_events ) [context] => side [priority] => low ) Array ( [title] => Additional Portfolio Settings [id] => preview [page] => Array ( [0] => portfolio ) [context] => normal [priority] => high ) Array ( [title] => Breadcrumb Hierarchy [id] => hierarchy [page] => Array ( [0] => portfolio ) [context] => side [priority] => low ) Array ( [title] => Avia Layout Builder [id] => avia_builder [page] => Array ( [0] => post [1] => portfolio [2] => page [3] => product [4] => espresso_events ) [context] => normal [priority] => high [expandable] => 1 ) Array ( [title] => Layout [id] => layout [page] => Array ( [0] => portfolio [1] => page [2] => post [3] => espresso_events ) [context] => side [priority] => low ) Array ( [title] => Additional Portfolio Settings [id] => preview [page] => Array ( [0] => portfolio ) [context] => normal [priority] => high ) Array ( [title] => Breadcrumb Hierarchy [id] => hierarchy [page] => Array ( [0] => portfolio ) [context] => side [priority] => low )
Does this give any insight in to why the layout builder is not appearing?
August 20, 2016 at 5:26 pm #675057August 21, 2016 at 2:16 am #675132I have already followed that documentation as per my first post, to no avail.
August 21, 2016 at 3:24 am #675134Yeah i see what you’re after, making ALB work outside post.php would require a heavy modification to the theme, unfortunately that’s beyond our support scope. You can request a customisation quote from a third-party provider here.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.