Balders
Forum Replies Created
-
What I said was the event is over, expired (NOT DELETED), means that it was maybe yesterday but it’s still in the Google cache, so you can find it by Google search.
I hope I made myself clear. Sorry for any touble.
Hi there,
I mean that the event is over but sometimes still in Google listed when you search for it. If you press the Google link there will be a 404 error.
Cheers
I tried Justin Tadlock, doesn’t work for my theme.
On front page I display 5 posts of each category I setup in admin/theme options. Please have a look here: https://www.der-backnanger.de Categories like Musik, Party/DJ, Kabarett, Theater and so on.
Cheers again
Hi there,
I use Swagger from Themeforest:
Thanks for your help, It’s really appreciated.
Sorry for opening this thread again, but this is something which really haunts me.
What I’ve done so far:
I put this code in the functions.php:
add_action('init', 'my_em_taxonomies'); function my_em_taxonomies() { register_taxonomy_for_object_type('post_tag', EM_POST_TYPE_EVENT); register_taxonomy_for_object_type('category', EM_POST_TYPE_EVENT); }
I put this filter after it:
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( 'post_type', array( 'post', 'event' ) ); return $query; }
But the event still doesn’t show up on the homepage. Where did I go wrong? Or what did I miss?
Thanks for helping. Problem is my site basically exists only of events. At the monent I have to copy every event to show up as post which is very time consuming.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Event tags problemThat’s what the theme developer said:
Looks like that plugin is trying to use the theme’s taxonomy.php page to list its events, and the theme is not finding any posts within the specified taxonomy. What you could try is to create a taxonomy specific page just for the EM plugin, which will cause it to use the page you create instead of the taxonomy.php page.
Does it make sense to you?
Cheers
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Event tags problemI haven’t changed anything in there. What can I put in there to display events connected with this tag?
At th emoment it says: There are no posts in the selected taxonomy. Which is obviously not right
Cheers
Hi there,
it works now in the way that it grabs the right category and the date is in German. The displayed date itself though is still the actual event date and not the post creation date as in normal wp posts.
Cheers
Hi again,
my page is called single-normal.php and sits in folder “inc”.
Do I have to rename to single-normal-event.php? Or still to single-event.php?
Cheers
Hi agelonwl,
Thanks for helping.
Your snippet doesn’t work though:
Catchable fatal error: Object of class WP_Error could not be converted to string
Cheers
Hi again,
I found the part which is responsible for this section:
<?php _e('Ver?ffentlicht am','swagger'); ?> <?php echo get_the_date(); ?> <?php _e('von','swagger'); ?> <?php the_author_link(); ?> <?php _e('in','swagger'); ?> <?php // get parent category if(get_post_type() == 'post') { $category = get_the_category(); $cat_tree = get_category_parents($category[0]->term_id, FALSE, ':', TRUE); $top_cat = split(':',$cat_tree); $parentObj = get_category_by_slug($top_cat[0]); $parent = $parentObj->name; $cat_link = get_category_link($parentObj->term_id); } else { $parent = ""; $cat_link=""; } ?> <?php if(!$parent=="") { ?> <a href="<?php echo $cat_link; ?>"><?php echo $parent; ?></a> <?php } ?>
I tried with is_event but no luck. Do I have to write a funcion first? Sorry but I am no php man. Above code needs to go when I display an event.
Any help would be appreciated. Cheers
Thanks,
much more important though is the empty category (posted in …)
Wouldn’t it be easier to get rid of the whole bar like in
if ( ! is_event() )
I mean show it for wp posts and get rid of it for events.
Do you have any ideas how to do that?
Cheers
Hi there,
thanks. Before I try your suggestions what does this snippet
<?php echo date_i18n(get_option('date_format') ,strtotime(get_the_date()));?>
actually do?
Cheers
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Event List SyntaxHi Marcus,
single tag is working, no problem. But single tag_ID isn’t working. The shortcode works everywhere on my site. But I need a filter with two tags, like town and tickets, because I’ve got events where I don’t sell tickets.
Here is the code
[events_list tag_ID="113"]
(doesn’t work)But two single tags don’t work either:
[events_list tag="tickets" tag="hamburg"]
Any thoughts
Cheers
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Event List SyntaxHi Marcus,
Sorry but that doesn’t work either. It doesn’t recognise the tag_ID at all. I’m still on 5.3. Did you change something in the meantime?
Cheers
Clemens