mtm
Forum Replies Created
-
oh nice idea – i can’t believe i didn’t think of this. i’ve done it, we’ll see if i get any more emails i guess.
i’m going to go ahead and mark this as resolved since the issue is on your to-do list in any case.
thanks predrag.
thanks for looking into this adam,
so i found that table but it already had the notifications set to false?
if this is getting fixed in a future version then i can live with the occasional email but it sounds like this wasn’t the behaviour you expected, so this might alter your diagnosis either at my end or yours.
thanks again,
mat
- This reply was modified 4 years, 4 months ago by mtm.
Yup that does it – thank you very much for the help. I thought I was following the example code (in the 2nd version above) but I didn’t realise the syntax needed to be adjusted to build the
$args
quite like that.Anyway, this has worked perfectly. Again, really appreciate you putting in the time to help us use this plugin well. Thanks!
thanks patrick.
i’ve double checked, and all notifications are indeed turned off.
m
Thanks – I thought I had done this. The query in my original post (or indeed the one from Nov 2nd) does work. You can see it in action at the staging site, under Past Events here. I’ve limited this query to just the first 8 posts. I intend to use an offset of in the eventual ALM shortcode to load subsequent posts.
If I’ve missed something here and by “a working WP_Query” you mean somethign different could you let me know please? Obviously I’d like to do all I can to allow you to help me here.
Thanks again.
I’d really appreciate your thoughts on this one? So far as I can see I’m doing what I’m supposed to – I’ve obviously missed some key step. Thanks.
Forum: Plugins
In reply to: [WooCommerce] Product gallery transisions – Where did the fade option go?I’m sorry, but what’s “resolved” about this issue?
Thanks.
Thanks for the reply, for some reason I wasn’t notified. Yes that’s exactly how it’s set up. The notifications are turned off in all areas of Defender, but in any case the subject line of the emails I’m receiving have the subject line “Security Tweak Report for [site url]”, so it’s definitely related to that module.
Forum: Plugins
In reply to: [WooCommerce] Product gallery transisions – Where did the fade option go?Yup, thank you. Looks like fade transitions in lightboxes are in no-one’s offering.
Oh this looks very promising. I had a go but so far no dice – you can see what’s happening at the staging site.
Here’s what I’ve added to the
functions.php
file:// ALM Shortcode // [ajax_load_more id="past_event_listing" posts_per_page="8" offset="8" button_label="Show More"] // 'past_event_listing' is the value of the 'id' parameter in the shortcode. date_default_timezone_set('Europe/London'); $alm_date_1 = date('Ymd', strtotime("-999 months")); $alm_date_2 = date('Ymd', strtotime("now")); $alm_past_args = array( 'post_type' => 'event', 'meta_query' => array( 'relation' => 'OR', // check to see if end date has been set array( 'key' => 'end_date', 'compare' => 'BETWEEN', 'type' => 'DATE', 'value' => array($alm_date_1, $alm_date_2), ), // if no end date has been set use event/start date array( 'key' => 'start_date', 'compare' => 'BETWEEN', 'type' => 'DATE', 'value' => array($alm_date_1, $alm_date_2), ) ), 'orderby' => 'meta_value_num', 'order' => 'DESC', ); return $alm_past_args; } add_filter( 'alm_query_args_past_event_listing', 'my_past_event_listing', 10, 2);
Here’s my shortcode:
[ajax_load_more id="past_event_listing" posts_per_page="8" offset="8" button_label="Show More"]
And here’s what the ALM container returns in the inspector:
<ul aria-live="polite" aria-atomic="true" class="alm-listing alm-ajax eventlist nopad nostyle" data-container-type="ul" data-repeater="default" data-post-type="post" data-order="DESC" data-orderby="date" data-offset="8" data-posts-per-page="8" data-scroll="true" data-scroll-distance="100" data-max-pages="0" data-pause-override="false" data-pause="false" data-button-label="Show More"></ul>
Any idea why it appears to be returning nothing? The same query in a template works, and there should be a further 15 events to list here.
Thanks.
Thanks so much for getting back to me. I’m not sure what you’ve created here quite does what I’m trying to though. I think I confused things by including a previous example which uses different keys.
So – forget the
event_date
key. Here we are using a combination ofstart_date
andend_date
.If you look again at the initial block of code in my first post, you see that there are TWO variables: the two dates which make up the
BETWEEN
operator and the two possible keys to pass through that operator.The process that first query creates is:
- Find posts of type
event
. - Check if post has an
end_date
value. If so, use it as the key. - If post no
end_date
value use thestart_date
value (there is always astart_date
value). - Compare the key to the meta value (using
BETWEEN
on the date range as in your shortcode). - Include post IF the key (which, from post to post, could be either
end_date
orstart_date
) falls between the meta values.
Your shortcode creates the date range in which the key needs to fall, but it uses one key –
event_date
– whereas I need it to check forend_date
before usingstart_date
.I hope that is clearer – apologies for the second bit of code in my original post, which I suspect has made this confusing.
Thanks.
Forum: Plugins
In reply to: [WooCommerce] Product gallery transisions – Where did the fade option go?Ah yes – it seems what I found was the old “Product Gallery Slider” add-on.
https://docs.woocommerce.com/document/product-gallery-slider/
Any recommendations as to how I would do this? It seems like such a basic thing.
Thanks.
thanks patrick,
i have 3 forms on the go (staged here).
i am using the import/export method to patch this issue already but it’s pretty inconvenient since the import/export feature doesn’t copy any of the integration mapping so it needs to be redone by hand each time.
m
hey kris,
i’m not seeing any other missing data of any kind i’m afraid., it’s very odd.
i’m migrating manually – copying files over via FTP and overwriting the database via phpmyadmin.
i should add that i’ve upgraeded to pro to get this sorted so i’ve got the team there working on this with me, but i’m happy to keep this thread going in case it’s of use to anyone else seeing this issue.
m
I have found the issue here – the install must use SSL to be authorised.