Hi.
I have added this code to add avia builder functionality to my custom posts (course_units):
add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);
function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
{
$meta[‘page’][] = ‘course_unit’; /*instead add the name of the custom post type here*/
}
}
return $metabox;
}
All is working great from the back end, except I can’t see edit post in the wordpress toolbar. What I mean is that I can’t edit my course post while I see it, because there is no button in the toolbar.
How can I enable it for my course_units posts?
I hope it all makes sense.
Thanks a lot
Darius
Hey Darius,
Please, provide to us your WP credentials and the website link.
Best regards,
John Torvik
Hi John.
Here are the details
Thanks a lot
Darius
Hi.
Anybody here? I posted the details 3 days ago.
Can we solve the problem?
Darius
Hi Darius,
Here are the threads for you to consider:
https://wordpress.stackexchange.com/questions/23386/edit-page-or-post-from-top-admin-bar
https://wordpress.stackexchange.com/questions/188157/edit-option-for-custom-post-types-archive-page
If you need further assistance please let us know.
Best regards,
Victoria
Cheers.
Hi,
Did you need additional help, or shall we close this thread?
Best regards,
Jordan Shannon