Adding featured/sticky event to Quick Edit

Home Forums Calendar Products Events Calendar PRO Adding featured/sticky event to Quick Edit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1454760
    Shane
    Participant

    Hi…

    I finally got around to purchasing the plugin suggested to me in my last support thread:

    https://theeventscalendar.com/support/forums/topic/adding-featuredsticky-event-to-quick-edit/

    I’m having some trouble because I have to add that column manually and I have no idea what to look for. Wondering if you can help me out with this. Thanks.

    Here is what I need to do:

    https://axelerant.atlassian.net/wiki/spaces/WPFAQ/pages/12845124/How+do+I+add+custom+fields+to+my+bulk+quick+edit+page

    #1461183
    Jennifer
    Keymaster

    Hi Shane!

    As Victor mentioned, this is possible with some custom coding. Please note that we are limited in the amount of support that we can provide for customizations, but I will try to point you in the right direction here.

    First, events are a custom post type (tribe_events), and you can find the name by using your browser’s inspector (right click the field on the edit event page, click Inspect – see screenshot). For the “Hide From Event Listings” field, the name you need is EventHideFromUpcoming. So, based on the example in the article you linked to, the code you need would be:

    add_filter( 'manage_tribe_events_posts_columns', 'my_manage_newsroom_posts_columns' );
    function my_manage_newsroom_posts_columns( $columns ) {
    $columns['EventHideFromUpcoming'] = esc_html__( 'Hide from Upcoming');
    return $columns;
    }

    I tested this out on my end, and it did add the field as a column. However, editing it in the Quick Edit section will take a bit more code. As a starting point, I would recommend taking a look at this article.

    You might also try out some third-party plugins. I did a quick search and found Custom Bulk/Quick Edit which looks like it will do what you are looking for, but there may be others out there as well.

    I hope this helps get you started, and please let me know if you have any questions!

    Thanks,

    Jennifer

    #1481330
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding featured/sticky event to Quick Edit’ is closed to new replies.