Nick Henley
Forum Replies Created
-
AuthorPosts
-
Excellent. Thanks for the guidance. Will give that a go. Thanks, Nick
Excellent. Thanks for the suggestion.
December 4, 2019 at 9:00 pm in reply to: Notification of listing in user's local area or in content interest (CPT) #519979Thank you for the response. I’ll look into how we might do that. Cheers, Nick
November 29, 2019 at 5:43 pm in reply to: How to turn off Packages field and link featured to Woocommerce Membership? #519229Great. Thanks for your help. We’ll be moving on to our second installation using GeoDirectory – this was our first hence learning a few tricks on the smaller one first. Nick
November 28, 2019 at 1:41 pm in reply to: How to turn off Packages field and link featured to Woocommerce Membership? #519018Thanks Alex. OK have removed the packages (after we deleted the Pricing Manager) and have written some code to link WooCommerce purchase of premium listing to featured, but its not setting. Can you see the issue please?
Here is the code
function ds_post_inserted( $post_id, $post, $update ) {
$user = wp_get_current_user();
if ( in_array( ‘um_premium’, (array) $user->roles ) ) {
add_post_meta( $post_id, ‘geodir_featured’, 1 );
}}
add_action( ‘wp_insert_post’, ‘ds_post_inserted’, 10, 3 );As you can see we are setting the featured field to 1 but it is not setting it.
Sorry, two quick questions as cannot find this in documentation and you said you might be able to help.
What is the name of the featured field and what are the values?
Can I update it like a normal meta field?
Thanks, Nick
November 19, 2019 at 8:17 pm in reply to: How to turn off Packages field and link featured to Woocommerce Membership? #517847No, we haven’t got Pricing Manager installed. I said (meant to say) that when ‘select package’ is deactivated in CPT settings/form then we can’t add a listing.
As I understand it we cannot turn off packages. Or does deleting all package options mean that field has no active role to play?
Thanks for confirming that we’ll need to do some custom work on Premium membership and featured linking.
I’ll wait for your reply before providing a private message and WP details. Thanks, Nick
Thanks for quick response. I’ll have a read. Thanks too for the tip.
Well that’s interesting because I only change the settings to Greater London when trying to work out what was not working. Could it be then that one needs to to reset these settings for multi location a little bit like the permalink fix. Thanks for fixing it anyway. I appreciate that. Nick
HI again, it is nothing to do with the custom post type fields as these are saving for the ‘owner’ (I had been trying to save for another person). So it seems to be a bug with the post type custom field display. Can I give you a login and you tell me what is wrong. Thanks, Nick
Yes, I tried that again (it was in the FAQs), but it hasn’t seemed to work. I did notice that the Job (place) is not saving the location details as I have to replace these each time. Is that the cause of the problem – it has no saved location?
-
AuthorPosts