Posted: September 10, 2015 at 5:25 am
|
I have posted about this before: On a Thesis forum someone is asking about this type of plugin so I gave it a test with Thesis, EE4 Decaf. In events it still does not output details of tickets. Recently another plugin Types had a similar issue. The cause was: The issue is really in the global $wp_post_types. Thesis theme is getting the array of post types before Types. So, custom post types from Types won’t appear there. In Types we have an action called “wpcf_init_custom_types_taxonomies” that initializes all post types. So there is no way to fix that on our side, but on Theme side. I have a proposal, you add the line below in templates.php Thesis file construct method. So the complete code will be this one: public function __construct($templates) { //Types initializing post types add_action(‘init’, array($this, ‘init’)); Obviously this would be overwritten on any upgrade.However Thesis has a master.php which is not overwritten and by adding:
The problem was solved. I wonder if EE has a similar problem. If you could check and give me some code to add I can test it on a test site. Keith |
|
Previous post: |
September 15, 2015 at 12:10 pm Hey Keith, You can get access to our core code on Github: Is that what you are looking for? |
|
|
Seth That could well be a bit beyond me. However I have made some progress. Strangely I saw a site with Thesis ver 2 with EE. I checked it out but it was using EE3, I tried that version and it does work. I then went back to EE4, it does create 2 templates, Events and Event but it only displays heading and text content – no ticket system. I went into the template editor for Event and added a text box which takes HTML and added short code [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”] which gives available tickets and Register Now. This appears to work ok and produced an invoice. If I add some more short code I will be able to display other info. Only problem is that a lot of people do not like using the template editor. Keith |
Thanks. Let us know if you need anything else. |
|
|
Seth Here is what I have done so far and it appears to work. I would value your views. Event Espresso and Thesis Ver 2.1 There is a theme Event Espress Arabica 2014 included with EE. Works out of the box so you can see what you are trying to achieve. #Remove post box from loop. [ESPRESSO_EVENTS title=”My Super Event List”] For some reason this appears to wake the content up. You will need some css as you require. #WP Loop > Post Box (Single) [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”] 2. add PHP Box: Date and Time and add: <span class=”dashicons dashicons-calendar”></span><?php espresso_event_date(‘l d F Y’); ?> 3. add PHP Box: Venue and add: <h1><b><span class=”ee-icon ee-icon-venue”></span> Event Location</b></h1> |
The support post ‘Compatibility with Thesis ver 2’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.