Linked, events + custom CPT

This topic contains 10 replies, has 3 voices, and was last updated by  anders 6 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #404060

    anders
    Full Member
    Post count: 121

    Hi,

    I have setup linked to business for Events + one additional CPT.
    Both are linked to gd_place -CPT.
    I have configured “Linked events settings” under Geodirectory > Design > Details.
    CPT addon, gd_place is set to “Linkable From” myCustomCPT
    …myCustomCPT is set to “Linkable To” gd_place.

    Now, I have discovered that gd_place will show a tab for either Events or myCustomCPT but not both and it seems to favor events. If no registered Events are linked, then the myCustomCPT tab appear but when a linked event is registered the myCustomCPT tab disappear but the events tab appear instead.

    Grateful for help with this, thanks!

    #404087

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    We have received your post here and it has been flagged for a developer.

    Please reply with your the URL for a listing that demonstrates the problem.

    Also, in a private reply, please include your admin credentials so we can take a look, if needed.

    Thanks!

    #404095

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    #404118

    Kiran
    Moderator
    Post count: 7069

    Hi Andres,

    It seems you have linked one CPT(gd_place) with multiple CPTs(gd_event & gd_vinresa).
    But as far current feature of linking CPT working, one CPT is linkable to only one CPT. one CPT can’t linkable to more than one CPT, that’s why it shows only one linked CPT tab on detail page.

    Let us know.

    Kiran

    #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!

    #404134

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Linking multiple CPTs to gd_place requires lots of customization.
    For little customization we provides snippets but this requires lots of customization, so i can’t able to provide you snippet. So i think you should have hire developer to implement this.

    Kiran

    #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!

    #404147

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Here is the gd_listings shortcode that has the post_author parameter:

    https://wpgeodirectory.com/docs/core-shortcodes/#listings

    Let us know how it goes

    #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!

    #404163

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Good idea, indeed!

    Many many more shortcodes will be available with GeoDirectory V2, and we will be sure to consider linking between posts.

    V2 dates yet to be announced, but work is happening right now!

    If you want to try adding one yourself now, this is the thread where the post_author filter was conceived: https://wpgeodirectory.com/support/topic/author-parameter-in-shortcode/

    Let us know how it goes

    #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!

Viewing 11 posts - 1 through 11 (of 11 total)

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

Open Support Ticket