Hello,
I have this page on my website with several package files.
What I’m looking for is to have a private area for each user where they can see the packages which are restricted for their user group, something like this.
I followed the instructions here to duplicate template files and the dashboard files are already on my theme directory.
I will make changes to the files to achieve what I need but there are one thing I don’t know how to do it which is how can I add to the dashboard a list of specific packages? I set to some packages permissions to administrator users and I want them to see this packages on their dashboard
Yes of course, my pleasure
Hi, now it’s working! Thank you for your help
That’s exactly what I did and it doesn’t work… can you take a look into my wp-admin? Look at this screenshot pls
Hi!
I made the update but the path you mentioned doesn’t work. It only works if the files are inside {theme-dir}/download-manager/
(on my last message I put it wrong, it should be like this)
Hi, it made it work but not exactly as you said. The only way to put it running with the template files from my theme is to place the wpdm-archive-page files inside {theme-dir}/download-manager/wpdm-archive-page/
. If I put it inside the folders you said it doesn’t work…
Basically what I need to change in the template is to add a title on top of the sidebar with “Search by category:” (I already have that before).
The shortcode I’m using is [wpdm_archive button_style="primary" template="custom-button-template" items_per_page="15" order_by="title" order="asc"]
Hi, I updated the template files in the theme but now it doesn’t show the changes I made. What do I need to do to change the archive addon template? I’m using the compact template
I investigated a bit more and discovered the issue is related with the folder “download-manager” on my child theme called “motorline”. Can you take a look into it? Probably with the new version the folder structure needs to be different
Hi, I tried with a default WP theme and your plugin runs well. I’m using The7 theme, what might be wrong?
It’s working, thank you very much.
What do you mean in Theme Editor? If you need to see theme files install file manager plugin
website is working now and also the search in archive addon, but now if I search using the search input in the header it searches also for WPDM posts, I need to see only results from dt_portfolio post type…
Hi
I added your code but the website doesn’t work. I think there is a strange character in this line:
$searchable_post_types = get_post_types( array( 'exclude_from_search' ► false ) );
This character “►” is ok?
Hi, I think you didn’t understand what I meant with that function. Basically it says to wordpress when users search for something on my website, when they use the main search in the header, it will filter the results to show only posts from dt_portfolio. The problem is, the function is running in the entire website, including pages I have WDPM archive addon, so when I search for something in it, there are no results, because wordpress is running the function I showed you before.
My question is, can I add anything to the function so it doesn’t run in WPDM archive searches?
Hi, any update?
Yes that’s what I said. If I remove the code the search works but I need to have that code for the main search on the website
Hello,
the issue is the search doesn’t work. If you search for something like the first results you can see on the archive, it doesn’t output any results. You can check here in this staging version: https://motorline.pt/staging/suporte/ . Search for “ARC007”
Hi, I start digging this issue again and I found the issue is related with a function I have on my website:
function searchfilter($query) {
if ($query->is_search && !is_admin()) {
$query->set('post_type',array('dt_portfolio'));
}
return $query;
}
add_filter('pre_get_posts','searchfilter');
As you can see this function filters the search results on my website for a specific post type and this is causing a conflict with your plugin. How can I set this function to don’t run when searching inside the Archive shortcode?
Actually that option doesn’t do the trick, it just resets the filter options above the button.
To reset stats I had to go to settings > privacy and remove cache and download history.
The database is much MORE small now, it went from 9GB to less than 1GB.
Can you create an option do disable downloads history? Or make it possible to set to save only a certain amount of days, for example, save download history for the last 90 days
With all the plugins disable the search works perfectly. I will try to enable some of them to see if I found the cause
My database has a total of 9gb. Table wp_postmeta has 8,5gb. I run these SQL code to see rows ordered by size:
SELECT *, LENGTH(meta_value) as LEN FROM
wp_postmetaORDER BY
LENDESC
As you can see on this image: https://tinyurl.com/yjukrcs4
There are lot of row related with WPDM, I think it’s related with download history and not download counts (as I said before).
You need to develop a way to optimize this, because the database gets huge with your plugin and it’s not affordable to anyone.