Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Hi Cherly,
We don’t do customisation, but if you explain more i will give my best advice.
I don’t understand one point, you are using GD and Invoicing on site 3, but what are you using on site 2? Are you selling GD listings there or what?
Thanks,
Stiofan
Ok i think this is what i would do…
Set the default status to “Pending Review” and then add a hook on post_save that checks the conditions and sets the status publish only if met, example below (NOT TESTED):function _my_save_post_actions($post_id, $post, $update) { // if an update then bail. if($update){ return;} // a post type check if ( isset($post->post_type) && $post->post_type=='gd_place' && $post->post_status!='publish') { // unhook this function so it doesn't loop infinitely remove_action( 'save_post', '_my_save_post_actions', 10 ); // we want to publish all gd_place listings wp_update_post(array( 'ID' => $post_id, 'post_status' => 'publish' )); // re-hook this function add_action( 'save_post', '_my_save_post_actions',10, 3 ); } // a user check $current_user_id = get_current_user_id(); $allowed_user_ids = array(1,5,10,20);// list of allowed user ids if ( in_array( $current_user_id, $allowed_user_ids) && $post->post_status!='publish') { // unhook this function so it doesn't loop infinitely remove_action( 'save_post', '_my_save_post_actions', 10 ); // we want to publish all gd_place listings wp_update_post(array( 'ID' => $post_id, 'post_status' => 'publish' )); // re-hook this function add_action( 'save_post', '_my_save_post_actions',10, 3 ); } } add_action( 'save_post', '_my_save_post_actions',10,3 );hopefully that example is enough to get you going 🙂
Thanks,
Stiofan
HI Eileen,
I activated but i could not see any problems on the frontend, can you explain what happens?
Also you did not have our WP Easy Updates plugin installed so i did that for you, and you have many plugin that need updated.
You need to enter your licence keys on the plugins page and then update, you can find your licences here:
https://wpgeodirectory.com/your-account/
https://wpinvoicing.com/your-account/Please update and check, if you still have problems let me know.
Thanks,
Stiofan
Hi Shane,
Are these paid or free listings or mixed?
I don’t think there is a way to alter this per CPT, but is that what you are asking or are you asking per user?Please explain a bit more and i’ll be able to suggest the best action.
Thanks,
Stiofan
Hi Cyril,
I believe by default its the main listing owner that is intended to add the franchises, then if needs be the owner of the franchise can claim it but i will flag this for Kiran who built the addon to confirm this.
Thanks,
Stiofan
Hi Eileen,
The user/pass do not seem to work, can you double check the details.
Thanks,
Stiofan
Hi Carl,
Your city longitude was malformed “-2.164885,12” there should never be any commas in GPS.
I fixed it and the map is now showing.
Thanks,
Stiofan
Hi Shane,
Please start your own topic, this one has been marked as resolved.
Stiofan
Hi Carl,
You can reply here and tick the box “Set as private reply” then only staff members will be able to see it.
Thanks,
Stiofan
Hi Susie,
I still don’t follow what you mean by the integration, but we have our own search page so i would not show woo categories or products there.
Thanks,
Stiofan
Hi Jorge,
We only give support for GD Booster and WP SUper Cache.
Please open your own topic if you have problems, this topic is marked as resolved.
Thanks,
Stiofan
The wp-admin details seem to be wrong, i did not check the others, please check the details and let me know.
Thanks,
Stiofan
Hi Josi,
It would seem this is some soft of file permissions problem, when i check the file permissions via ftp there are none, i have not seen this before and it will not let me set it to the correct values. The only person who can resolve this is your server admin/ hosting company.
Thanks,
Stiofan
Hello,
Your places are not showing, i am guessing your did a search replace in the DB? If you did this in a text editor you will have broken things, you should get the original DB, change only the “siteurl” and the “home” values in the options table so the site will load in the new url, then use the plugin “Better search replace” to change the urls.
Thanks,
Stiofan
Hello,
this function will get it
geodir_get_default_catimage($term_id, $post_type);Stiofan
-
AuthorPosts