anders

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 102 total)
  • Author
    Posts
  • in reply to: Use GD templates on new pages? #405368

    anders
    Full Member
    Post count: 121

    Perfect, thank you Alex!

    in reply to: Remove tab, condition? #404574

    anders
    Full Member
    Post count: 121

    Ok, please move to jobs

    Thanks!

    in reply to: Linked, events + custom CPT #404171

    anders
    Full Member
    Post count: 121

    Thank you Alex!

    That is really powerful, I´m pretty sure I can make this work with post_author filter and gd_listings shortcode

    …I believe we posted at the same time earlier by the way

    Looking forward to V2, sounds great!

    Thanks!

    in reply to: Linked, events + custom CPT #404148

    anders
    Full Member
    Post count: 121

    …or perhaps even better, an additional argument could be:
    only show posts where geo_dirlink_business has the same value as post_id of current post?

    Thanks!

    in reply to: Linked, events + custom CPT #404146

    anders
    Full Member
    Post count: 121

    Ok, I understand

    Trying to think of other ways:
    Would it be very hard to customize the “Popular Post View widget” (placed on details sidebar) to include one more argument…only show posts that has the same author as the currently viewed post.

    Thanks!

    in reply to: Linked, events + custom CPT #404128

    anders
    Full Member
    Post count: 121

    Thank you Kiran,

    Could you please give some advise on how to proceed with this.
    We really need to gather linked items for different CPT:s from gd_place.
    Would it be a major customization to allow for more than one linkable CPT?
    …if we manually can specify in the code what CPT:s to look for

    Thanks!

    in reply to: Linked, events + custom CPT #404095

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    in reply to: Link to business, skip search part #403766

    anders
    Full Member
    Post count: 121

    Ok,

    I figured out how to achieve what I needed.

    This is what worked for me (for replacing geodir_event_show_business_fields_html -function)

    
    
    add_filter( 'template_include', 'geodir_event_template_loader_custom',1);
    function geodir_event_template_loader_custom($template) {
    		if(geodir_get_current_posttype() == 'gd_event'){			remove_action('geodir_before_detail_fields','geodir_event_show_business_fields_html',1);
    add_action('geodir_before_detail_fields','geodir_event_show_business_fields_html_custom',1);
    		}	
    		return $template;
    }
    function geodir_event_show_business_fields_html_custom() {
    		echo 'Modified version of the geodir_event_show_business_fields_html comes here';
    }

    Thanks!

    in reply to: Link to business, skip search part #403553

    anders
    Full Member
    Post count: 121

    Thank you Alex,

    I can see how Code snippets would be great with a custom child theme like Supreme.
    But I´m using a basic child theme for Directory starter that I believe serve the same purpose?
    Anyway I have the customization ready I just need help removing the parenttheme -function eodir_event_show_business_fields_html

    Thanks!

    in reply to: Link to business, skip search part #403424

    anders
    Full Member
    Post count: 121

    Thank you Alex,

    I have already setup my child theme for Directory starter where I have my customizations working really nice (nothing complicated). Are you recommending I should switch to that plugin?

    …I have looked at the snippets page (and searched the forums) but haven´t found anything helping me with this.
    From Stiofans tip (and the forums) I have been able to modify the geodir_event_show_business_fields_html -function into what I need. Now I just would like to know the correct way to hook, remove, and replace the function, grateful for help with that

    Thanks!

    in reply to: Link to business, skip search part #403367

    anders
    Full Member
    Post count: 121

    Thank you Stiofan,

    Think I´m pretty close to what I need, modifying geodir_event_show_business_fields_html
    But could you please show me the correct way to place the function inside my child themes functions.php

    This is what I tried but didn’t work:

    
    
    function init_custom_link_to_business() {
    		remove_action('geodir_event_business_fields_on_metabox', 'geodir_event_show_business_fields_html');
    		add_action('geodir_event_business_fields_on_metabox', 'geodir_event_show_business_fields_html_custom');
    }
    add_action('init', 'init_custom_link_to_business');
    
    function geodir_event_show_business_fields_html_custom(){
        echo 'Modified version of geodir_event_show_business_fields_html comes here';
    }
    in reply to: Link to business, skip search part? #402640

    anders
    Full Member
    Post count: 121

    Thank you Alex!

    -“How would you define applicable posts?”
    Only from the current user and only from the gd_place CPT

    I understand that for now this would be a customization and not under support
    But could you please give some pointers on where best to start, which hook…?

    I did find a really good feature request already entered for this that I voted for:
    “Link events to business simplified”
    …but it feels like a really long shot with all those requests ahead of it.

    Thanks!

    in reply to: Popular post view widget, sort by + where clause #400810

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    in reply to: Popular post view widget, sort by + where clause #400678

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    in reply to: Popular post view widget, sort by + where clause #400420

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
Viewing 15 posts - 76 through 90 (of 102 total)