Posted: August 15, 2013 at 6:13 pm
|
When I click the “include image in post” button nothing happens. There is a small ‘broken image”(?) icon that appears in the featured image area of the sidebar. But nothing else. the color coding on events isn’t working. If you go to the calendar the events that are there should be displayed in 3 colors. I’m seeing them as white (with 1 of them randomly being the correct color). Can we add a color coded category legend? Category links at the top calendar that is? |
|
Hi Michael, Regarding the broken image there could be a few different causes here. The first thing I would check is in the WordPress options and verify that the “image_default_link_type” is set to “file”. You can check this by going to yourdomainname.com/wp-admin/options.php and scrolling down to the “image_default_link_type” and it should say file in the option’s value field. Regarding the calendar, do the events with no colouring have more than one category? The calendar will only show one category colour and it will choose that bottom most selected category as the display colour. Can we add a color coded category legend? Sure just add one to the Page where the calendar shortcode is. Some people use HTML/CSS, some find it easier to just make an image in an art package. |
|
Thank you Dean, |
Hi Michael, In order to troubleshoot this further we need to know a few things: Which events and which categories are not working? Which ones are? It looks to me like the one for Aug 10 is getting a custom background color and custom text color applied. You might try changing the colors a bit for the other categories and re-saving the category and the other events that are assigned to the other category. With the color key, it’s not a feature that’s included with Event Espresso. |
|
|
All events are working. The categories that are not working are all of them except “events” category. I tried editing the category colors & re saving. Also tried editing event & resaving to no avail. |
Hi Michael, Can you let us know what the shortcode is that is on the calendar page? |
|
|
[ESPRESSO_CALENDAR] |
Excellent. Can you try going into Event Espresso>Calendar settings and near the bottom of the settings page set Disable Attendee Limits? to Yes. |
|
Josh, I set Display Attendee Limits? to NO and Category colors work. |
|
I thinks it depends on if you are going to have large numbers of events displayed on your calendar and a few other factors such as thumbnail images in the calendar. I would suggest starting at 64mb and working up from there as needed. |
|
I’m curious as to what would be a large number of events. |
|
You can try 64 MB and go up from there. As an aside, we are working on altering the query that pulls in the attendee limits for the next version. You can squeeze some extra efficiency out of the current calendar add-on by changing a few lines of code in espresso-calendar.php starting at line 343: $orig_attendee_limit = get_number_of_attendees_reg_limit($event->id, $type = 'num_attendees_slash_reg_limit'); $parse_limits = explode( '/', $orig_attendee_limit, 2 ); $num_completed = $parse_limits[0]; $reg_limit = $parse_limits[1]; you can change it to: $num_completed = 0; $a_sql = "SELECT SUM(quantity) quantity FROM " . EVENTS_ATTENDEE_TABLE . " WHERE event_id=%d AND (payment_status='Completed' OR payment_status='Pending' OR payment_status='Refund') "; $wpdb->get_results( $wpdb->prepare( $a_sql, $event->id ), ARRAY_A); if ($wpdb->num_rows > 0 && $wpdb->last_result[0]->quantity != NULL) { $num_completed = $wpdb->last_result[0]->quantity; } $reg_limit = $event->reg_limit; |
|
The support post ‘Category Colors & featured images not working’ 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.