Hi Shahriar,
I have went through the plugins and themes. It wasn’t a plugin conflict, but it does seem to be a theme issue. When I use a default WP theme, it works. However, when I activate the X Theme from Themco, it doesn’t work.
We are using the latest version of X Theme with an empty child theme (no custom functions or anything in there). Is there a known conflict between WPDM and X Theme?
Hey, yea the simplified code did work for me. After some further troubleshooting, I was able to determine that the loop was breaking WPDM’s ability to save the WPDM fields.
while ( $loop->have_posts() ) : $loop->the_post();
endwhile;
However, I need the loop in there, so I can loop through my subscribers list to get their emails and send them the notifications. I was create a solution, though
For anyone trying to loop through posts inside the ‘publish_wpdmpro’ or ‘save_post_wpdmpro’ actions, the solution for me was to change the loop to this:
global $subscriberpost;
$subscriberargs = array( ‘post_type’ ► ‘subscription’ );
$subscribers = get_posts($subscriberargs);
$counter = 0;
if ($subscribers) {
foreach($subscribers as $subscriberpost) : setup_postdata($subscriberpost);
//WHAT YOU WANT THE LOOP TO DO WITH THE POST
endforeach;
wp_reset_postdata();
}
NOTE: WP functions (such as the_title(); or get_the_title();) will return the information from the Download package, not to post you are looping through. To get information from the post you are looping through, you need to send the post as a parameter, like this: the_title($subscriberpost);
I see that in some of the WPDM core files it’s calling the “publish_wpdmpro” action and “save_post” action (i.e. in download-manage/libs/class.Apply.php)
So, I assume that when I call the same action it’s conflicting and the WPDM’s call on the action isn’t processing?
Is there a way to prevent the conflict? Or another action or hook within WPDM I can target when the user saves from the admin panel? Or will we just have to use the frontend to create/publish Download packages?
I’ve tried that, as well as this one: add_action(‘publish_wpdmpro’, ‘wpdmpro_published_notification’, 10, 2);
It will trigger the function and save all of the WordPress fields (title, publish date, content, etc), but it will not save the WPDM fields. It always returns blanks for the WPDM fields.
Awesome, thanks. 🙂
Is there a way to trigger the create_package or edit_post actions from the backend/wp-admin? Or do they have to be created/edited from the frontend?
Update: I’ve setup the frontend form to use in the interim, however the option to set the “Allow Access” for the package doesn’t appear? It is saving with that field blank on the frontend, so nobody can have access to it. Is there a way to edit this field from the frontend, or even have it default to “All Visitors”?
I want it to trigger when an admin creates/edits a “Downloads” post. They will be creating them from the wp-admin dashboard > Downloads > Add New
Thank you so much! This is very helpful.
Corinne
Thank you! I’m a huge fan of this plugin and very grateful for your support over the past week.
Hi!
The content is not appearing on any of my website pages that use the category shortcode generated by the TinyMCE button (recently updated as suggested above) or the category shortcode provided on your website. Also, on these pages, the admin nav bar at top of the site is missing. I’ve updated and reinstalled the plug-in and add-ons but nothing is working to show the category downloads. Suggestions?
Thanks!
Hi!
Sorry to bother again. The new accordion options are awesome and I figured out how to sort exactly the way I wanted. Thank you!
I uploaded the new TinyMCE button but the code generated is not including the category I specify in the checkboxes. Can you give me the short-code I should use to display a category? Thanks.
Thank you so much! Will update both now.
Hope you have a great weekend.
Hi!
Also, my category short-codes are not working now that I’ve updated to new version of WPDM. The code generator also produces category code that does not work. Can you please provide short-code for including category on a page? Thanks!
Hi!
If this isn’t possible could you please suggest an alternate method to display this info? I tried including several accordion shortcodes on the page in order to get the info sorted correctly but only one accordion shortcode worked on the page – the rest just tried loading but never did.
Thank you!
Hi Shaon,
I have another question about the download manager – accordion add on. I’m trying to get a direct download link to the file vs the user having to clink on the link to the package and then have to click to download the file. It would help eliminate a step for the user. 🙂 Could you help?
Thank you!
Andrea
Thank you!
Actually, the upgrade wasn’t at all successful. Detail pages are blank (happened after I changed the setting to not show the search bar, but they didn’t come back once I re-enabled the search bar). Also, several files are showing as 0.0kb, and when I click to download all I get is file-not-found.txt.
I’ll revert to a backup, but is it worth trying again?
Just upgraded, and that line went way on its own. Now I just need to figure out how to style the rest of it (hide some of the information on the detail page, etc.), but I’m guessing that has to do with templates.
OK, that worked, although I had to go in and replace all of my old shortcodes (looks like their format changed?). I think all is well now. Thanks!
Here’s an example page. I’d like to remove the “Library Category #2” phrase.