waffeltje
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Ordering [jobs] based on custom post fieldHi,
Excuse me for the late reply. Indeed tested the code and everything is working as expected; featured listings are sorted before unfeatured listings with taking the custom post meta field into account.
Thanks for you help!
Forum: Plugins
In reply to: [WP Job Manager] Ordering [jobs] based on custom post fieldThanks a lot for your reply Deric, this is very helpfull.
Can I also make sure that Featured Listings remain on top, and after all featured listings have been listed I sort on the custom meta key? Featured listings have a higher priority, so that’s why I want to keep them on top.
Thanks in advance.
Forum: Plugins
In reply to: [WP Job Manager] Remove action noindex_expired_filled_job_listingsHi Mehdi,
Thanks for your reply. I know that it is normal behaviour of the plugin to set filled jobs to no-index. But since I’m having troubles with Rank Math SEO I want to remove this functionality from the WPJM plugin. Therefore my question how this can be achieved.
I was hoping that someone in this community had an easy fix for this problem, and that it is a simple alteration to the line of code I posted above.
Would love to find out if this can be achieved in a simple manner.
Hi Jay,
Thanks for your reply!
I understand that you (as plugin developer) don’t support custom development. I asked the question here in this forum to see whether someone from the WPJM community (/users) might have experience with this question and suggest directions how to achieve the desired functionality.
Good morning,
Sorry for the late reply. Indeed, the function custom_submit_job_form_fields() was existing twice. After renaming one of the functions the problem was resolved. Thanks @bindlegirl for your advice.
Regards.Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Get Invoice locationHi Alex,
Thanks for the reply.I now have the following bit of code:
$order_id = 6107; $invoice = wcpdf_get_document( 'invoice', $order_id ); $filename = $invoice->get_filename(); $tmp_path = WPO_WCPDF()->main->get_tmp_path( 'attachments' ); $pdf_path = $tmp_path . $filename; $attachments = array($pdf_path ); $message = "Path: ".$pdf_path ."."; $headers = array('Content-Type: text/html; charset=UTF-8'); $headers[] = 'From: Test Sender <[email protected]>'; $headers[] = 'Content-Type: text/html'; $headers[] = 'charset=UTF-8'; wp_mail('[email protected]', 'Attachment test', $message, $headers, $attachments);
The email doesn’t contain the pdf invoice yet. When I check the folder in which the PDF should be located it is empty. Probably because of the temporary nature of the folder. Do you know how I can generate the PDF on te fly and attach it to the email?
Thanks in advance.
- This reply was modified 3 years, 3 months ago by waffeltje.