Event Categories marked as Post Categories not pulling to homepage slider

Home Forums Calendar Products Events Calendar PRO Event Categories marked as Post Categories not pulling to homepage slider

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1343463
    nychaps
    Participant

    Hi there, a few related issues:

    1. I’m attempting to display featured events on my site’s homepage to loop as banner sliders. I’ve taken the advice of this previous thread regarding the issue: https://theeventscalendar.com/support/forums/topic/event-categories-as-post-categories/

    Based on the documentation there, I’ve pasted the appropriate code into my theme’s function.php, which added the default post Categories box to the edit Event page.

    I have checked the ‘Include events in main blog loop’ box.

    I have unchecked ‘recurring event instances.’

    I have added the code snippet to order events in the main blog loop by post date.

    Unfortunately, after adding both of those snippets and marking my event as a “featured” post like the others that show up on the homepage slider, it doesn’t appear there.

    2. After making these alterations to the php, my event list editor page looks super wonky.

    Please see attached screenshots.

    Thanks,
    Julie

    #1343955
    Andras
    Keymaster

    Hello Julie,

    Thanks for using our plugins and welcome to the forums!

    I just would like to let you know upfront that based on our support policy we are limited in supporting customizations. I can give you some pointers and advice, but you will need to pick up the shovel and do the dirty work. Thanks for understanding!

    Not quite sure why the admin list looks so wonky. It might be that some events have a lot of categories and tags, so those columns will be expanded sideways. That will leave less space for the rest, and thus squishes the Event title.

    For this I can recommend our free Filter Bar plug which will help you with sorting and filtering on the backend, while also allowing you to choose which columns to show.

    As for the banner, are you trying to show only featured events there? Or mixed with posts?

    Andras

    #1344557
    nychaps
    Participant

    Hi András,

    Thank you for your prompt reply. As a paying customer of The Events Calendar, I appreciate the pointers on using your plugin.

    It looks like you’re right about the categories taking up a lot of room and squishing all of the text. As I said in my previous post, I did some dirty work and added code so that default post categories are displayed in addition to the event categories in an attempt to resolve the banner issue on my own.

    Unfortunately, it looks like the the free Filter Bar plugin you recommended is not free, but $89. Is there another option to resolve this problem?

    I am only trying to show featured posts on the banner.

    Thank you in advance for your solution to these issues.

    Julie

    #1344777
    Andras
    Keymaster

    Hi Julie,

    Oh, I’m really sorry, I mixed up the filter bar plugin with Advanced Post Manager (APM), this is the one you need for the backend, not the Filter Bar. Apologies! :blushing:

    How are you trying to create the banner / slider? Are you coding the whole thing yourself?

    Based on what you wrote before I take it you want to pull posts and events that have a certain category and show those in the slider.

    You could try using tags instead, because that is the same for posts and events.

    You could create a custom query, that:

    • pulls all posts_types “post” and “tribe_events”
    • that have the defined category / tag
    • and if it’s an event then it’s in the future

    I am only trying to show featured posts on the banner.

    With this are you referring to the setting where you can set an event as “featured”? (screenshot)

    Andras

    #1344868
    nychaps
    Participant

    Thanks so much, András. The Advanced Post Manager immediately fixed the wonky event page formatting issue.

    You are correct in your understanding of how the homepage slider/banner works:
    I am not coding it myself. I use the Organic Themes Nonprofit theme. The slider/banner is a built-in feature in this theme. I choose which category of posts I’d like pulled onto the banner/slider, and it pulls those. Currently I have the settings so that my “featured” blog posts are featured in the slider, but that category could be interchanged anything. It pulls whatever category I tell it to, and I created that category.

    In theory, if I’m able to mark my Events Calendar posts with my normal blog post categories, the events should show up in the banner/slider. I pasted in the code from the support ticket that I cited in my original post: https://theeventscalendar.com/support/forums/topic/event-categories-as-post-categories/

    …but it didn’t work. I’m able to mark the Event Calendar posts with normal blog categories now, but they don’t show up on the places that normal posts labeled under those categories should, e.g. the banner/slider. So I’m able to mark the Events Calendar events as “featured” blog posts, but they don’t show up in the place that my normal “featured” blog posts show up, rendering the marking ineffectual.

    With this are you referring to the setting where you can set an event as “featured”? (screenshot)

    No, I’m referring to the regular blog post category “Featured” that I created.

    Thanks,
    Julie

    #1345556
    nychaps
    Participant

    I hired a coder to fix this issue: http://northernyorkhistorical.org

    Thanks,
    Julie

    #1345623
    Andras
    Keymaster

    Hi Julie,

    Thanks for letting us know.

    Thinking about that snippet and why they are not showing up… I’m not familiar with the theme you are using, but it could be that it is only looking for entries in the wp_posts table which have a post_type=’post’ and the respective category, and not taking post_type=’tribe_events’ into account. But that’s just a wild hunch.

    Since you marked this resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic in the forum. Thanks!

    Good luck with your project!

    Cheers,
    Andras

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Event Categories marked as Post Categories not pulling to homepage slider’ is closed to new replies.