Nick Henley

Forum Replies Created

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • in reply to: Guidance required on user id in API #531554

    Nick Henley
    Full Member
    Post count: 29

    Excellent. Thanks for the guidance. Will give that a go. Thanks, Nick

    in reply to: Is there a search alert feature? #520666

    Nick Henley
    Full Member
    Post count: 29

    Excellent. Thanks for the suggestion.


    Nick Henley
    Full Member
    Post count: 29

    Thank you for the response. I’ll look into how we might do that. Cheers, Nick


    Nick Henley
    Full Member
    Post count: 29

    Great. 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


    Nick Henley
    Full Member
    Post count: 29

    Thanks 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.

    in reply to: CPT v2 documentation #518288

    Nick Henley
    Full Member
    Post count: 29

    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


    Nick Henley
    Full Member
    Post count: 29

    No, 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

    in reply to: CPT v2 documentation #517846

    Nick Henley
    Full Member
    Post count: 29

    Thanks for quick response. I’ll have a read. Thanks too for the tip.

    in reply to: Page doesn't seem to exist #510616

    Nick Henley
    Full Member
    Post count: 29

    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

    in reply to: Page doesn't seem to exist #510592

    Nick Henley
    Full Member
    Post count: 29

    Yes, please, admin login,

    username nickhenley42 and pw Runrun+42

    https://parttimepurpose.org

    in reply to: Page doesn't seem to exist #510591

    Nick Henley
    Full Member
    Post count: 29

    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

    in reply to: Page doesn't seem to exist #510494

    Nick Henley
    Full Member
    Post count: 29

    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?

Viewing 12 posts - 16 through 27 (of 27 total)