Forum Replies Created
-
AuthorPosts
-
amir200770
ParticipantHi,
Thank you for all your help.
It’s finally working as I wanted.
http://202.191.63.187/~lachlrwg/amir200770
ParticipantSadly it still does not work.
I’m now not using any plugins / short-codes and still no go.
Please have a look and let me know if you have any suggestions.
I am calling the slideToggle directly as follows:$(“#mapp”).hide();
$(“#maptoggle”).click(function(){
$(“#mapp”).slideToggle(“fast”, mapp0.resize());
});amir200770
ParticipantSadly no effective difference.
amir200770
ParticipantJust tried the 2 millisecond delay, but to no avail.
amir200770
ParticipantHi,
Your code is there now. But the toggle opens and closes instantly.
amir200770
ParticipantHi,
I just tried this and some variations, and it just does not work.
It’s very frustrating!amir200770
ParticipantHi Chris,
I have found a not so elegant solution using mapp0.resize() in conjunction with the toggle’s click event. It works but the slideToggle has to run twice each time, first with duration 0 and then with an actual duration. For some reason the slideToggle has to run twice before the mapp.resize works.
I have to run something like this<script type=”text/javascript”>
jQuery(function($){
$(document).ready(function(){
$(“#page-slider h3.symple-toggle-trigger”).click(function(){
$(this).toggleClass(“active”).next().slideToggle(0);
mapp0.resize();
$(this).toggleClass(“active”).next().slideToggle(“fast”);
});
});
});
</script>If you have any suggestions, I am very interested.
Thanks for all your help.
Amir
amir200770
ParticipantHi Chris,
Thank you for getting back to me.
According to your FAQ (http://mappresspro.com/mappress-faq), MapPress caters for the issue, provided one uses the jQuery UI Tabs.So I installed the plugin WP UI (http://wordpress.org/plugins/wp-ui/). Is this not correct?
However, as you can see on http://202.191.63.187/~lachlrwg/, the issue still presists. The top toggles are from WP UI.Can you shed some light please?
Thanks,
Amiramir200770
ParticipantHi Chris,
Looks like I have to use a category to specify past events (and add it to the list of the other categories in the query) rather than filtering out “events” type posts by querying the value of “end_date” fields.
I appreciate all your help.
Regards,
Amiramir200770
ParticipantHi Chris,
Yes I’m trying to get the result for normal posts in the given categories OR the events type posts with end_date<20130618. How would you write this query within the mashup tag?
Thanks. Amir
amir200770
ParticipantHi Chris,
Thank you for the file. Sadly the issue still persists. The query must be incorrect as it’s not returning any results.
Just to confirm, “category_name=lachlan-catchment,rivers-creeks” by itself correctly lists normal post types with category “lachlan-catchment” and “rivers-creeks”.
In addition, query “post_type=events&meta_key=end_date&meta_value=20130618&meta_compare=<” by itself also correctly lists posts of type “events” where field “end_date” has a value less than (<) 20130618.How would you combine the two queries to get a complete list containing posts from the first query together with “events” posts from the second query?
Regards,
Amiramir200770
ParticipantThanks Chris. Yes I would be grateful for an immediate fix.
Please email me at
mail(at)mostofi(dot)com(dot)auBy the way,
$wpq = new WP_Query(‘category_name=lachlan-catchment,rivers-creeks&post_type=events&meta_key=end_date&meta_value=20130618&meta_compare=<‘);
print_r($wpq);returns only the following
WP_Query Object ( [query_vars] => Array ( [category_name] => lachlan-catchment [post_type] => events [meta_key] => end_date [meta_value] => 20130618 [meta_compare] => < [error] => [m] => 0 [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [tag] => [cat] => 29 [tag_id] => [author_name] => [feed] => [tb] => [paged] => 0 [comments_popup] => [preview] => [s] => [sentence] => [fields] => [menu_order] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_post_meta_cache] => 1 [posts_per_page] => 10 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [order] => DESC ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => category [terms] => Array ( [0] => lachlan-catchment [1] => rivers-creeks ) [include_children] => 1 [field] => slug [operator] => IN ) ) [relation] => AND ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [key] => end_date [compare] => < [value] => 20130618 ) ) [relation] => AND ) [post_count] => 0 [current_post] => -1 [in_the_loop] => [comment_count] => 0 [current_comment] => -1 [found_posts] => 0 [max_num_pages] => 0 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => 1 [is_tag] => [is_tax] => [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_404] => [is_comments_popup] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash] => 9e115d762c47fb4609a0b0cf54391e51 [query_vars_changed] => [thumbnails_cached] => [query] => Array ( [category_name] => lachlan-catchment,rivers-creeks [post_type] => events [meta_key] => end_date [meta_value] => 20130618 [meta_compare] => < ) [request] => SELECT SQL_CALC_FOUND_ROWS lrwg_posts.ID FROM lrwg_posts INNER JOIN lrwg_term_relationships ON (lrwg_posts.ID = lrwg_term_relationships.object_id) INNER JOIN lrwg_postmeta ON (lrwg_posts.ID = lrwg_postmeta.post_id) WHERE 1=1 AND ( lrwg_term_relationships.term_taxonomy_id IN (30,31) ) AND lrwg_posts.post_type = ‘events’ AND (lrwg_posts.post_status = ‘publish’ OR lrwg_posts.post_status = ‘private’) AND ( (lrwg_postmeta.meta_key = ‘end_date’ AND CAST(lrwg_postmeta.meta_value AS CHAR) < ‘20130618’) ) GROUP BY lrwg_posts.ID ORDER BY lrwg_posts.post_date DESC LIMIT 0, 10 [posts] => Array ( ) )
That is, the query is not actually returning any results.
(Also not that the custom field used now is end_date rather than event_end_date .)Regards,
Amiramir200770
ParticipantCan anyone shed some light on this issue?
Thanks,
Amiramir200770
ParticipantHi Chris,
I have managed to get it to work. The meta_compare value should not appear in quotes. So the query statement should just be
$query = “post_type=events&meta_key=event_end_date&meta_value=” . date(‘Ymd’) . “&meta_compare=<“;
That is < instead of ‘<‘.
Thanks.
amir200770
ParticipantHi Chris,
Thanks for that. I just tried the following
$query = “post_type=events&meta_key=event_end_date&meta_value=” . date(‘Ymd’) . “&meta_compare='<‘”;
echo do_shortcode(‘[mashup width="100%" height="400" query="' . $query .'"]‘);and unfortunately it still returns no POIs (just a map of the globe). And I definitely have events with event_end_date < date(Ymd).
It’s almost as if the shortcode does not understand date(Ymd) or meta_compare.
Any thoughts?
-
AuthorPosts