WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Are Events Categories different from regular post categories? (39 posts)

  1. gfields108
    Member
    Posted 2 years ago #

    I have a News category that has over 160 posts that are not events. When I migrated my events to The Events Calendar 2.0 a couple of events have an Events Calendar category of News. I unchecked News for those posts and now want to remove the News events category. If I do that, will I lose the 160+ posts in my News category that are not events? Are these two News categories the same or different?

    How do Events Categories work?

    In would be extremely helpful to have a good description of The Events Calendar 2.0 functionality so we do not have to ask such questions.

    Thanks for a great plugin! (Though the migration to 2.0 felt a little brutal).

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    Hey gfields108,

    Migration to 2.0 can definitely be a little brutal! It was such a huge change. Glad you made it through to the other end. =)

    We are actively working on documentation and hope to have quite a bit of it on our site in the next few weeks. I never imagined writing documentation would be harder than writing the plugin itself. Learning a lot about offering a complete product right now. It is a fun adventure.

    Event categories are a completely independent taxonomy from post categories. The migration tool looks at the categories your "events" from 1.6.5 had and tries to faithfully cary them over. It created new categories with the same name in the new events custom post type. I'd back up first just on the tiny odds that I am wrong (it happens). You can safely delete the news category with no repercussions.

    Thanks for the nice words.

  3. Spencario
    Member
    Posted 2 years ago #

    If you would please consider having an option to make the events posts again.

    Our events that we want to scroll across our home page require them to be in the "Featured" category of posts. Under the upgrade we are no longer able to make featured events scroll across the home page since they are now event categories not posts.

    This was one of the most important features for us.

    Your consideration would be very appreciated.

    Thank you for your hard work.

  4. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    Hi Spencario,

    I hear your request. That is not the tiny thing it sounds. Those are deeply different architectural approaches.

    That said, you should be able to update your featured events slider to pull from the events category post using the tribe_get_events template tag without too much trouble (if someone on your crew has a touch of wp theme knowledge). We will have further documentation on the use of all our updated tags next week with the release of 2.0.1.

    -S

  5. rvlawrence
    Member
    Posted 2 years ago #

    "Event categories are a completely independent taxonomy from post categories."

    This is crazy to do this. They should be just like regular categories. Now, you can't make use of your special "event categories" with membership plugins like Wishlist Member or any other plugins that want to access or plug into the regular wordpress categories to do something.

    Essentially now you've got a closed system and to extend the functionality we have to buy additional add-ons and plugins from you.

    This severely cripples the full extensibility of this plugin by not allowing outside plugins and your plugin not playing nice with others.

    I had high hopes for this plugin and it looked wonderful but after playing around with it, I can see its severe limitations.

  6. bwp
    Member
    Posted 2 years ago #

    rvlawrence's post comes off a bit harsh, but that's part of the reason I'm sticking with The Events Calendar 1.6 for now. Unfortunately I know of no other decent calendaring plugin that DOES treat events as posts! (One says it's in the works.)

    Maybe there's a better way, with an non-plugin calendar? I just haven't found anything good, and I don't want to just put everything on Google Calendar...

  7. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    rvlawrence - the issue you state about other plugins integrating has more to do with WordPress being in a period of flux between having everything be either posts or in its own table and authors fully adopting custom post types. The core WordPress team is placing a heavy emphasis on CPTs and most major plugin authors are moving over. For example Shopp is moving from their own tables to CPTs in 1.2 (some time around december). As more and more plugins make the move, the integration you want to see will return in a much more powerful and controlled manner.

    If you want wish list member and other plugins to integrate, push them to support custom post type integration.

  8. rvlawrence
    Member
    Posted 2 years ago #

    What about your "event categories"? Aren't those in their own special table? If you were using the traditional wordpress categories, then plugins could interact with them. When you make them separate, then these plugins can't, unless they were written especially for your plugin. This is a separate issue from custom post types.

  9. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    Hi Lawrence.

    Events does not create a single table.

    We simply use WordPress' build in db architecture. Our events cats live in Terms table like the rest. They are an independent taxonomy, but not in an independent table. I was referencing to the way WordPress now works with taxonomies (term_taxonomy table). My apologies for the confusion.

  10. handsomeman
    Member
    Posted 2 years ago #

    Hey guys, I found a fix for this. Put it in your functions.php to get your old categories to show up and replace demos with with the words events or whatever. I got it from this link http://www.deluxeblogtips.com/2010/07/custom-post-type-with-categories-post.html
    Worked great for Me!

    add_action('init', 'demo_register_post_type');

    function demo_register_post_type() {
    register_post_type('tribe_events', array(
    'labels' => array(
    'name' => 'Demos',
    'singular_name' => 'Demo',
    'add_new' => 'Add new demo',
    'edit_item' => 'Edit demo',
    'new_item' => 'New demo',
    'view_item' => 'View demo',
    'search_items' => 'Search demos',
    'not_found' => 'No demos found',
    'not_found_in_trash' => 'No demos found in Trash'
    ),
    'public' => true,
    'supports' => array(
    'title',
    'excerpt'
    ),
    'taxonomies' => array('category', 'post_tag') // this is IMPORTANT
    ));
    }

  11. handsomeman
    Member
    Posted 2 years ago #

    Just need to get the permalinks to stay with domain.com/events/ instead of domain.com/tribe-events/ only issue giving all my event links 404s any help would be appreciated

  12. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    handsomeman, thats awesome. We just had someone submit a tutorial today on how to do this in a different approach. We are going to work with him to clean it up and put it on our blog soon.

  13. handsomeman
    Member
    Posted 2 years ago #

    Hey Shane, awesome, that is perfect!! Yea I was thinking you could slide the following in to the above code.

    'rewrite' => array('slug' => 'event', 'with_front' => false),

    hmm.?! we will see.

  14. handsomeman
    Member
    Posted 2 years ago #

    success! Flawless.. just change out the demo and replace event with the slug your using

    add_action('init', 'demo_register_post_type');

    function demo_register_post_type() {
    register_post_type('tribe_events', array( 'rewrite' => array('slug' => 'event', 'with_front' => false),
    'labels' => array(
    'name' => 'Demos',
    'singular_name' => 'Demo',
    'add_new' => 'Add new demo',
    'edit_item' => 'Edit demo',
    'new_item' => 'New demo',
    'view_item' => 'View demo',
    'search_items' => 'Search demos',
    'not_found' => 'No demos found',
    'not_found_in_trash' => 'No demos found in Trash'
    ),
    'public' => true,
    'supports' => array(
    'title',
    'excerpt'
    ),
    'taxonomies' => array('category', 'post_tag') // this is IMPORTANT
    ));
    }

  15. bwp
    Member
    Posted 2 years ago #

    Thanks, handsome! Could you explain a bit more what this is doing? Do I gather that this exposes the standard WP category selection box while creating or editing Tribe Events custom posts types?

    And that those custom post type events will then be treatable and listable as normal posts when displaying the contents of a category (e.g., from a menu link)?

  16. handsomeman
    Member
    Posted 2 years ago #

    Yup. so you will see and use the custom post type categories and the normal 'post' type categories on your sidebar. After adding this code my homepage worked correctly like before. It was such a pain to to figure out how to implement my homepage to pull in the new custom post type categories. Here is all the code I have added to my functions.php to get everything working properly with the original categories and also keeping the new ones too from the events plugin.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    So you can work with both list of categories. The word 'event' is used to maintain the domain.com/event because if you don't have the slug your using... it will revert it to domain.com/tribe_events giving you 404s on all your homepage links or where ever. I just switched out the words demo starting at the word 'name' and worked down to 'not found in trash' and replaced it with the appropriate "event" or "events" so it made sense in your dashboard menu/sidebar.

    I added it directly below the following line, which is first in your functions.php

    <?php wp_enqueue_script('jquery');

    So essentially you will see original categories and custom post type categories when creating a new event. (this might be restated, sorry ha)

  17. bwp
    Member
    Posted 2 years ago #

    Perfect, handsome; thanks so much.

    If this does what you say it does, I think it would make TEC 2.x livable for our purposes. (I'd much rather see it included in a new TEC 2 release, but maybe I'll play with it on a test site.) I'm very happy Shane is taking you up on the work.

  18. handsomeman
    Member
    Posted 2 years ago #

    No problem! I think Shane had someone else submit a different way to do it also.. but I don't see it gets much easier than just simply putting exactly what I have above.. the only thing someone might change is the slug if need be to fit there purposes. Please let me know if it works for you after you test it on yours!! I migrated all my data after the update, which was probably a mistake, but after fixing everything I probably won't be updating anymore haha. Oh well.

  19. handsomeman
    Member
    Posted 2 years ago #

    Convert back to normal post structure and delete the 2.0 events calendar out and install the old one. So easy to migrate.

    http://wordpress.org/extend/plugins/convert-post-types/

    Convert the post types first.
    Then install an older events calendar

  20. bwp
    Member
    Posted 2 years ago #

    handsome, are you replying in the right thread?

  21. handsomeman
    Member
    Posted 2 years ago #

    Yup.. just telling you guys how to migrate back to the 1.6.5 events calendar if you migrated and didn't back up.

  22. brockers
    Member
    Posted 2 years ago #

    Question, when you say:

    As more and more plugins make the move, the integration you want to see will return in a much more powerful and controlled manner.

    Is this change primarily driven by an attempt to it easier to integrate third party (like your for purchase "pro" version) systems into WP? I have a sneaking suspicion that the push towards CPT's is directly focused on capitalizing on the success of the app market models common on smart phones.

    Bobby

  23. Mike McKoy
    Member
    Posted 2 years ago #

    Oh this is definitively more about money that the needs of those using the plugins for the last years.

    I believe they are OK with losing some users.

  24. expat
    Member
    Posted 2 years ago #

    hi, this is great but where can i find the info of the eventtype?

    The only thing i can see is the slug. Help please

  25. expat
    Member
    Posted 2 years ago #

    So the name of the new function can be anything?

    And the slug begins with "domain.com/event"

    So how do u count the new "posts" for that category or post_tag?

  26. bwp
    Member
    Posted 2 years ago #

    I'm typically pretty cynical, but I disagree. I really do think this was an (ill conceived) attempt to use the latest features of WordPress as it develops, and that, as they've written, their previous use of regular posts as events was never part of their intention but merely a marriage of convenience.

    And yet I still think they've thrown away something great and turned their software into just another calendar. :(

  27. Mike McKoy
    Member
    Posted 2 years ago #

    I agree with BWP. People found a way to make the original integration with posts work... Ad because of this the plugin grew in numbers and use for an extremely long period of time (with no updates).

    So their user base is used to using the product in a certain way. It wasn't wise to change the total architecture without supporting the old one because people have used this product for years in the old form.

    Plus changing the post types also changed the permalink structure which is very harmful to search engine results. They should have coded a choice between the new way and the old.

    Its just a calendar now....and I didn't use the calendar before so it doesn't have much value now for me. I only posted the events and directed my base to the actual post.

  28. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Thanks for all the feedback, folks. We didn't expect the change to have this much of an impact on the community so it's great to hear you coming back with reasons as to why this wasn't a good move.

    You've likely already seen the documentation we put together at the tri.be site on how to integrate these events with your regular posts, so you're back where you were with 1.6.5. The question it raises on my end is, what more would you guys like from us at this point to make it easier to integrate? While we aren't going to be changing the entire code base back we could definitely create more documentation, etc. if it'd help you all.

    Let me know. We're listening; contrary to what has been noted above, we care just as much about the free community than the PRO users because we're WP devs ourself and more than anything want to improve the experience for everyone. Tell us what you want and we'll do what we can to make it happen.

  29. bwp
    Member
    Posted 2 years ago #

    Thanks, rob.

    The remaining issues that come to mind right now are:

    1. Category integration. Will you "bless" or otherwise incorporate handsomeman's category hack (allowing TEC events to occupy BOTH the new TEC 2 categories AND standard WP categories)? And if one then chooses to use only standard categories in 2.x events, will there be a loss of TEC feature functionality? Will other TEC functions be able to see or use the normal categories?

    2. Permalinks and search. Several people (not me) have complained that their event posts in 2.x are largely ignored by The Google, both for migrated 1.x events and newly posted events.

    3. The survivability of the regular post and category hacks through future upgrades.

  30. Shane Pearlman
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    hey bwp,

    #1 - we probably won't incorporate it into the core, but based upon the demand, we might make a small add-on that supports the part of the community who wants to have their events integrate cleanly with regular posts. Can't ay when we will do that (as we have a very long list of things to tackle), but until that time we will make sure that some external hack stays viable.

    #2 - that seems weird and surprising. We have incorporated micro formats into 2.0 which specifically deals with helping google recognize these as events and increase their SEO impact. While it is always possible that something went awry, it would' be intentional. If there is an seo expert out there who can verify that would be cool, but we are doing it correctly as far as we are aware.

    #3 - while I can't promise that hacks won't break, I can promise that we will remain helpful and responsive in getting authors what they need to fix them as the plugin grows and changes. Heck, major WordPress releases often break things and that is just the nature of a changing software world.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic