Paolo
Forum Replies Created
-
AuthorPosts
-
Hi,
if you want to modify the code of a plugin, you are expected to at least know the basics. the scope of this forum isn’t to provide ready made code to blindly copy and paste for your website customizations.
1) In this post I explain how to modify the add listing template, which is the basic method to do all this type of changes:
This part :
In your theme functions.php you can add this:
should clear where the code is to be added.
2) In this post it is clearly explained how to remove 1 item from the sidebar, in this case the share buttons.
3) In this post I explain how to remove the addthis part instead of the social sharing buttons.
All the information needed to do what you need to do are there.
Thank you
Hi,
pls follow this example:
https://wpgeodirectory.com/support/topic/change-entry-title-for-category-pages/#post-31196
Thanks
February 24, 2015 at 9:20 pm in reply to: How do I change/edit the categories displayed in detail sidebar? #31927please let us know if we can set this as resolved.
Thx
Please update both GD and all addons, retest and let us know.
Thx
Hi,
this is not solved yet, because as of now we were unable to recreate it in our websites and we also never saw it in your website.
We would need more details. Possibly find the exact steps that would allow us to see this happening.
I’ve flagged both topics for developers to look into it, but please if you have more information don’t hesitate to share them.
THx
February 24, 2015 at 9:09 pm in reply to: Automatically disabling map location on inaccurate addresses #31923Hi,
i don’t think there is an easy solution for this.You can disable the map in listing page per CPT, Price or category. I’ll let you decide what’s best.
Here you can find the instructions to hide a tab for a particular CPT only. https://wpgeodirectory.com/support/topic/hide-tabs-in-custom-post-type-2/page/2/#post-25090
and here how to modify that for price package instead of CPT.
https://wpgeodirectory.com/support/topic/moving-places-between-different-cpts/#post-26121For category you’d have to change the conditional check to:
if ( in_category( 'no address' )) { //funtion to rearrange tabs here }In that case you would have to use the category “no address”.
One problem will remain, which is the map in the listing page for that category. I think in that case that you could use a conditional widget plugin and show the map for all categories except that one.
Let us know how you went.
Thx
Please see this, it should point you in the right direction : https://wpgeodirectory.com/support/topic/sharethis-plugin/#post-7306
Make sure not to follow what that user did though, editing core file is a big mistake. Please follow the example I provide.
Thx
BTW, I see only 11 filters, not 15…
Hi,
There was a function checking for the word ‘tag’ in the html variable name.
It was not doing it correctly and it was actually useless. It was a left over from the very 1st draft of the plugin.
We remove the check and it’s working as it should now.
Please check and let us know.
Thanks for allowing us to spot the bug and fix it.
Hi,
that’s not an error, but a warning and it shouldn’t be disaplyed in your front end.Please try adding the code snippet below in your child theme’s functions.php file.
error_reporting(E_ERROR);That should tell PHP to log warnings in error logs and not disaply them in front end.
Thanks
Hi,
I’ve double checked and this is an oversight. I’ve added a task for developers to fix asap.
Thank you for spotting it.
Hi,
it is feasible to display custom fields in any tab.
However search will not be affected. Search looks though title and content, but in the database, not in the front end, so moving things in the front end will not change anything.
What you need to change in that case are the search queries, but that is extremely complicated and we won’t be able to offer support for that.
To move a fieldset in the profile tab, this is how to proceed:
Add the function below to your active theme functions.php and replace gd_tab_3 with the correct tab index which is orginally displaying the fieldset.
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend_profile') ; function geodir_detail_page_tab_list_extend_profile($tab_array) { global $post; // here is where we check the tab we want has info and then assign it to a global $post value. // you would change the 'gd_tab_3' to your tab key. if(isset($tab_array['gd_tab_3']['tab_content']) && $tab_array['gd_tab_3']['tab_content']){ $post->my_profile_extend = $tab_array['gd_tab_3']['tab_content']; // assign the content to global value $tab_array['gd_tab_3']['is_display']= false;// don't display the tab } // here we call a function that will get the global value and echo it. add_action('geodir_after_description_on_listing_detail','gd_extra_profile_tab_info'); return $tab_array; } // function that will get the global value and echo it. function gd_extra_profile_tab_info(){ global $post; if(isset($post->my_profile_extend) && $post->my_profile_extend){echo $post->my_profile_extend;} }To find out how to find the correct tab index, you can do a print_r to get the key, still in functions.php add this and it will display all tab keys.
function geodir_detail_page_tab_list_extend_profile($tab_array)
{
print_r($tab_array);
}Let us know how you went.
Thanks,
Hi,
we are having trouble accessing via FTP.
It gets stuck at retrieving the folders index, than throws error:
501 Server cannot accept argument.
Could you please verify them and possibly also provide phpmuadmin/cpanel access? We might need to check your db too.
Thx
HI,
I’d suggest to post the job offer on other freelancer websites too.
It seems like all freelance developers are busy with other customer’s project at the moment.
Thank you
Hi,
looking into it again now. We’ll let you know asap.
thx for your patience
-
AuthorPosts