Linking Contractors with their Projects

This topic contains 15 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #295100

    Matt Gray
    Expired Member
    Post count: 131

    Hello,

    I have been trying to link Contractors with a custom post type Contractor projects. I have a few issues and I’m not sure how it works:

    1) Is it possible to resort “Go to: Contractor”. I don’t see the area where I an move it up or down in the sorting. See attached.

    2) On mobile, it’s not possible to search for the company. Am I doing something wrong? They need to add projects from mobile phones. I can’t write or search. See attached.

    3) Duplicate categories. I like this feature a lot because it wasn’t making sense that people could not link back to the Contractor. People were lost. What is going to happen with my existing projects. If I move everything to Contractor Projects, then I will have this tab “projects here”. I need to hide this tab then and I still need that custom post because that is how they add projects. See attached.

    Thanks for your help.

    Matt

    #295105

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #295358

    Paolo
    Site Admin
    Post count: 31206

    Hi Matt,

    I’ve flagged this for the developers, especially for point 1 and 2, because we will need their help.

    Point 3 to be honest, I haven’t understood the question… Please advise.

    Thanks

    #295367

    Matt Gray
    Expired Member
    Post count: 131

    Hello,

    I will try to explain #3 better…

    3 months ago this was created by your developers as a custom post type. I think it was before I could do this in the settings. I needed the Contractors to be able to Add Projects for their company. So, they fixed it this way and it works perfectly until now.

    I will need to hide this tab because I will move all the “projects” to the linked “contractor projects”. After I move them, I will have this tab called “projects” — but I don’t need it anymore. All the projects will move to the “contractor projects” tab. So the “projects” will be empty.

    Essentially, I need to hide that tab “projects” . I don’t know how to hide it. Does that make sense now?

    Thanks Paolo.

    #295599

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Matt,

    #1 thats not a sortable option, you would need to play with the priotity number for exmaple

    add_action( 'geodir_after_detail_page_more_info', 'geodir_cpt_link_display_link_business',1 );

    or

    add_action( 'geodir_after_detail_page_more_info', 'geodir_cpt_link_display_link_business',100 );

    and remove the old link:

    remove_action( 'geodir_after_detail_page_more_info', 'geodir_cpt_link_display_link_business' );

    #2 seems like a bug, i will update you when fixed.

    #3 looks like we added code to your child theme functions, i have commented it out for now.

    Thanks,

    Stiofan

    #295683

    Matt Gray
    Expired Member
    Post count: 131

    Hey Guys,

    Thanks for getting back to me. I’ve been working on #3 and reading the forums with no luck.

    So, that features is exactly what I was looking for. I never knew about it. The only issue I am having after testing is how to control this widget area. There are just two things that don’t work.

    1) I want to make it 2 columns like the rest of the site.
    2) Featured should always go to the top as they are paying.

    Screenshot below and link.

    https://sp8ce.design/places/united-states/virginia/gainesville/general-contractors/ryken-construction/

    If you could advise on that part, I’d appreciate it. Thanks again.

    Matt

    #296863

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Matt,

    #1 it should be, if oyu provide FTP i will add a updated CSS file to fix.
    #2 I blieve this is the default sort, try installeing evnets addon, then under GD>Design>Details>Linked event settings, you should be able to control it from there.

    Thanks,

    Stiofan

    #297003

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #297378

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    ok there was a small bug in CPT addon i have fixed, the sort rules follow the related listings settings, so you can disable events.

    I did comment out the code in your child theme the other day, someone must have undone it or restored that file.

    
    
    The code u want to remvoe from your child theme functions is:
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;  
    function geodir_detail_page_tab_list_extend($tab_array) {   
    if ( 'gd_place' == get_post_type() ) {
    $tab_array['projects'] = array( 
    'heading_text' =>  __('Projects',GEODIRECTORY_TEXTDOMAIN),
    'is_active_tab' => false,
    'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true,'projects'),
    'tab_content' => '');    
    return $tab_array ; } 
    else {return $tab_array ;}
    }
    
    add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
    function geodir_my_new_tab_content($tab_index)
    {
    if($tab_index =='projects')
    {echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" add_location_filter="0"]');}
    }

    Stiofan

    #304157

    Matt Gray
    Expired Member
    Post count: 131

    Issue 1 and 3 are fixed. Thank you!

    Can you provide an update on issue #2?

    2) On mobile, it’s not possible to search for the company. Am I doing something wrong? They need to add projects from mobile phones. I can’t write or search. See attached.

    #311063

    Matt Gray
    Expired Member
    Post count: 131

    Hello,

    Can you let me know about #2? We are unable to add anything on mobile devices without this feature working.

    Thank you.

    Matt

    #313163

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That has been fixed and will be in the next release.

    Stiofan

    #318112

    Matt Gray
    Expired Member
    Post count: 131

    Hey Stiofan,

    I checked now with the update. It’s working. I appreciate it! Enjoy your weekend.

    All my tickets can be closed out. None of them are pending and all are fixed.

    Thanks again – Great product!

    Matt

    #318116

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Matt,

    You are very welcome and thanks for the feedback, if you have not already we would really appreciate a review (it helps us grow) https://wordpress.org/support/plugin/geodirectory/reviews/?rate=5#new-post

    Enjoy your weekend too! 🙂

    Stiofan

    #318119

    Matt Gray
    Expired Member
    Post count: 131

    See attached. Hope you like the review. I mean it all. You guys have done a great job. Very impressed.

    If you want a review on your website, I can do that too. Let me know and I’ll write something else up for you.

    Matt

Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket