Fesch
Forum Replies Created
-
I fixed it by adding
if(empty($args[‘category’])){$args[‘category’] = “-34”;};
to my event-list template.
Now events from category 34 are only visible, if selected in the filter.
just to confirm, the filter is the bar with Fotos, Jobs, Release, etc… ?
Yes, this is the filter
and you want to remove Jobs from there?
No, I dont want to remove Jobs from the filter. I just dont want events from the Job category to be visible, if all events are visible. Only if you select Jobs in the filter.
Thanks!
Yes, I added it to the eventlist.php. As I don’t want events from category 34 to show up in the main list, only if you select category 34 in the filter.
Is this wrong?
Thank you
Yes it is the black bar.
No matter which I click the contents underneath remains the same.
Thats the problem.
It stoped working after I added $args[‘category’] = “-34”; to my template file, in order to remove post from the category 34 from the mainlist.
When I remove $args[‘category’] = “-34”; from the template it works.
Check the site again, I removed the tag. Now the filter works again.
Yes, here is the link to the site.
http://fachschaft.disziplin-gestaltung.de/If you try to filter the events using the filter-bar below the slider, it doesn’t work.
The category I want to exclude from the list is “Jobs”.
Thank you.
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Map and AjaxNo problem. I solved the problem by using an iframe for the map. Not the best solution, but it works.
Just one last question:
Is it possible to display a list of all locations next to the map?Thanks
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Map and AjaxMaybe you can give me just a little hint where to start? Is it possible to get the content of the map by the map id? Just like the_content() of a reuglar post?
I would really appreciate any help.
Thank you
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Map and AjaxThank you for your response.
This is a simplified version of the functions, which is called via Ajax.
$post_id = $_POST['id']; global $post; $post = &get_post($post_id); setup_postdata( $post ); echo include(locate_template('content-single.php'));Inside the template file the content of the post is returned by
<?php the_content(); ?>As I mentioned in my first post, I tried to execute the map shortcode inside my template file after: the_content().
By
echo do_shortcode('[google_maps id="884"]');But it doesn’t work.
Thank you
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Map and AjaxAnyone?