• Resolved fernmuendlich

    (@fernmuendlich)


    Hi there,

    I#ve got a problem with [categories_list]. I use
    [categories_list child_of=6 hide_empty=1] to show the categories of my events. It works fine untill I prepare events in draftmode. If a category has events in draftmode or in pastebin it is still displayed in my categories-list. Not that nice, because visitors get a 404-error by clickin on it.

    Obviously the function doesn’t check the “event_status” of the corresponding event.

    Any ideas?

    Thanks!

    http://wordpress.org/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, I just tried this and seems to be working fine; my categories (in single category page) is not reading events in draft? can I know your EM version?

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Of course you can, I#m using EM Version 5.4.3.

    In this special case I use [categories_list] in a widget as a manu for my subcategories in a category. Maybe it depends..

    Thanks for caring

    Can you tell what you mean when you say “some events are in pastebin”? Thanks.

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Of course 😉

    The german wp-version calls it “Im Papierkorb”. If you delete an event, it’s not really deleted, it’s moved to trash. It’s preserved, but marked as deleted, the “event_status” of the event at the database-table is changed to “-1”.

    Clearer now?

    Hi,

    This is weird, I cannot reproduce your problem.

    I created a page with shortcode [categories_list hide_empty=1] and it works as expected (I tried with a category containing draft and trashed events)

    Do you have the same symptom when you remove the child_of attribute ?

    Vielen Dank – my German isn’t what it should be 🙂

    Can you post a url where this is happening?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, I agree with @franceimage can’t reproduced this either; is it okay to post some step by step guide on how to reproduced the issue?

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Hey Guys,
    thanks for your input!

    right now I’m in a little hurry, but I will prepare a guide to build a situation as mine and will lok for a possibility to show my issue in the wild.

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Okay guys, here I am again 😉

    The steps you need to reproduce the issue:

    I have two categories of events, each has some subcategories. For each category I’ve build a special page to show the subcategories and their events. At the sidebar I put

    [categories_list child_of=6 hide_empty=1]

    in a widget, in the main-area I show the events in tables by the short-code

    [categories_list child_of=6 hide_empty=1]
    <h2>#_CATEGORYNAME</h2>
    #_CATEGORYNEXTEVENTS
    [/categories_list]

    If I have an event in draft-mode in one of these subcategories the ’empty’ category is shown at the widget, the event display in the main-area is working correctly, the error-mesage “Keine Termine für diese Kategorie gefunden” is shown untill I publish the event.

    Hope that helps

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Next step: Showing the issue “in the wild”:

    by using
    usr: testuser
    pass: termine2013

    at http://neu.lvq.de you can reach the frontend of the new website. plese choose ‘Weiterbildung für Arbeitssuchende | Terminübersicht’ to look at the described scenario. ‘testkategorie’ is shown at the left side although the corresponding event ‘testevent’ is in draft-mode.

    Any Ideas?

    Thanks for helping

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    i tested your shortcode, and it worked fine for me, drafts don’t show up.

    I have a feeling that this is related to your WP install, because child_of and hide_empty are fed directly into wp’s get_terms function, meaning we return what WP sends to us.

    for me the testkategorie shows a 404, that’s also a clue since it shoudl still show a valid page.

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Hmm.

    which page should be shown if you call an empty (sub)category-link? In my installation a click on an empty category always showed a 404…

    It looks like that this issue is related to my installation, because I tried to find the problem in my quite pure test-version, where I configured some -now outdated- events and all works fine. Only if I publish outdated events I get my ’empty’ category shown, if I put them back to draft everything is nice again. How are the events marked as outdated by EM, if time goes by?

    Any idea where to start searching, if it’s WP’s fault?

    Thanks

    Hiya!

    Here’s a few things to try;

    1. Re-save permalinks and see if that makes a difference
    2. Disable all other plugins and try again
    3. Switch to the default theme and test your page again

    Let us know if any of those things fixes the issue… it could be that a plugin or some theme functions are overriding queries and inserting drafts back in.

    Cheers,
    Phil

    Thread Starter fernmuendlich

    (@fernmuendlich)

    Hi Phil,

    thanks for your hints, I tried all of them, but none of them fixed the issue. Neither deactivating all plugins nor resaving the permalinks or changing the theme.

    Not that good…

    Horrido

    Since testkategorie seems to be causing the problem, does it help if you delete it?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Bug [categories_list] event in draft mode -> category is displayed’ is closed to new replies.