anders
Forum Replies Created
-
AuthorPosts
-
Perfect, thank you Alex!
Ok, please move to jobs
Thanks!
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!
…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!
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!
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 forThanks!
This reply has been marked as private.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!
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_htmlThanks!
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 thatThanks!
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.phpThis 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'; }
Thank you Alex!
-“How would you define applicable posts?”
Only from the current user and only from the gd_place CPTI 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!
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private. -
AuthorPosts