X
29973

Ticket #29973 Public

Post type for events ?

  • Hi!

    I need to know what Custom Post Type events are.. in the sense that I need to update the code below and replace ‘post’ with the appropriate post type so that the Avia Builder in the ENFOLD Theme is accessible to EventOn entries.. Thanks!!

    (http://www.kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/)

     

    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'][] = 'post'; /*instead add the name of the custom post type here*/
    		}
    	}
    	
    
    	return $metabox;
    }
    BY: ianstudio - Mar 3,2017 AT 5:45AM - 3 years ago
    • By: otsukadev Mar 3,2017 AT 10:29AM - Posted 3 years ago - #30036

      ‘ajde_events’

      This just worked for me – put in your Theme functions file  functions.php

      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’][] = ‘ajde_events’; /*instead add the name of the custom post type here*/
      }
      }

      return $metabox;
      }

    • By: otsukadev Mar 3,2017 AT 11:09AM - Posted 3 years ago - #30048

      Couple of Notes

      A lot of the full width elements will break pop-up event cards (haven’t tried it on some of the other types) Full width button didn’t appear. Columns and Special headings worked fine. Just getting into this – hope this helped

    • By: Ashish Rai Mar 7,2017 AT 10:46AM - Posted 3 years ago - #30476

      Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer!

    • By: Ashan Perera Mar 8,2017 AT 9:36AM - Posted 3 years ago - #30601

      Looks like you got your answer already 🙂 and with regards to the other issue mentioned, i am not too familiar with that theme so I can not provide an answer to that point sorry

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON