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?
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.
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?
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?
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.
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
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
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.
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;
- Re-save permalinks and see if that makes a difference
- Disable all other plugins and try again
- 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
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?