Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
The Api should be our main focus from next week.
Thanks,
Stiofan
Hello,
It looks like you have a self signed certificate, that wont work and even in chrome your site will not show. (see attached image)
Maybe have a look at our blog post: https://wpgeodirectory.com/adding-a-ssl-certificate-to-your-website/Thanks,
Stiofan
I have assigned this to one of the devs, he will check it on Monday.
Thanks,
Stiofan
U just needed to add this line (i added it for you)
add_filter("geodir_custom_field_output_text",'_my_hide_field_from_admin',10,3);This file contains each function for outputting for each one you need to add the type:
https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/custom_fields_output_functions.phpfor function geodir_cf_checkbox you would need the line
add_filter("geodir_custom_field_output_checkbox",'_my_hide_field_from_admin',10,3);Stiofan
That is mainly for updating current post info, are you looking to create new posts? Have you looked at our API plugin? https://github.com/GeoDirectory/geodir_api
Stiofan
You are welcome 🙂
Stiofan
Thanks, the function was using the is_admin key instead of for_admin_use
function _my_hide_field_from_admin($html,$fields_location,$type){ if(isset($type['for_admin_use']) && $type['for_admin_use'] && !is_super_admin()){ $html = ''; } return $html; }Now just change any field to for admin sue under GD>Place Settings>field>for admin use
Thanks,
Stiofan
Thanks for the info the plugin “CDN Enabler” seems to be the problem, when that is deactivated then it works.
Stiofan
You are welcome!
I tried adding one of the functions but it seems you must have had it somewhere already, can you provide FTP info so i can fix it.
Stiofan
Hello
You can use geodir_save_post_meta() the same way as update_post_meta()
You would get the users post id’s the same way as you would with any CPT.
Stiofan
Great 🙂
This reply has been marked as private.You can install a plugin called code snippets or put code in your child theme functions.php
You can use the hook that fires on post save to do something like:
add_action('geodir_after_save_listinginfo','_my_save_tp_language',10,2); function _my_save_tp_language($postinfo_array, $post_id){ if(isset($postinfo_array['geodir_tp_language']) && $postinfo_array['geodir_tp_language']){ update_post_meta($post_id, 'tp_language', $postinfo_array['geodir_tp_language']); } }Thanks,
Stiofan
What is not disabled in the sidebar? Can you provide links and wp-admin info.
Stiofan
-
AuthorPosts