Hi @flofiwp
I going to check the Download Monitor functionality and will answer you soon.
Thanks.
Hi,
Thanks a lot. Did you already find a solution?
Flo
HI,
thats really nice. GREAT SUPPORT!
We will try that.
Thanks a lot and have a great weekend
flo
Hi,
it is not working like expected. We uploaded a zip and gave this download the category not-in-search-result
So it is in functions.php in child theme like this:
add_action('pre_get_posts', function(&$wpq)
{
if ($wpq->is_search && $wpq->is_main_query()) {
$wpq->set('tax_query', array(
array(
'taxonomy' => 'dlm_download_category',
'field' => 'slug',
// Here you need to put your category slug
'terms' => array( 'not-in-search-result' ),
'operator' => 'NOT IN',
),
),
);
}
});
could it be that the parent theme or woocommerce or another plugin is using pre_get_posts and this one above is not called?
Do you have an idea to do it another way or how can we debug that?
Thanks
flo
Hi @flofiwp
This is the most correct way. I think either there is a bug in the code (but as I can see it’s not) or something breaks this rule by another hook call.
May we have a short TeamViewer session so I can check what do you have there? Please write me to Live Chat at https://fulltextsearch.org when you ready.
Hi
please update Addon for Download Monitor with this one
https://fulltextsearch.org/wpfts-addon-download-monitor-1.0.4.zip
I found a tiny issue in the Download Monitor which is a reason why its posts do not shown in search results.
I guess we solved this, thank you, and let me know if you have more questions.
HI,
Thanks a lot. It works now.
Is it possible to show file extension like ZIP, PDF… in search results for files uploaded throuhg download monitor like it is possible for file attachments?
Thanks
Flo
Hi, @flofiwp
Yes, I think it’s possible via the small hook. I will return back to you with a solution soon.
alright. thanks a lot. then i will wait for you.
Have a nice weekend.
flo
Hi,
sorry for my late reply. Right now with the latest update all is looking good so far.
I will get back to you if we have any further questions.
Thanks again for you great support
Flo