Link to business, skip search part?

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #402575

    anders
    Full Member
    Post count: 121

    Hi,

    We are building a niched directory where companies can publish events.
    So when a user/company signs up, the first thing they need to do is register a company (under the gd_place CPT)
    Then they can start registering their events and these events should all somehow be tied to that earlier registered gd_place-company as organizer/contact info

    So I have activated the link to business feature when creating events.
    Would it be possible (or very hard) to simply have the ”Search business…” -select list populated with applicable posts from gd_place by default?
    (which in our case will always be the one company registered for each user)
    …instead of letting the user search for that company every time registering a new event

    Thanks!

    #402595

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    How would you define ‘applicable posts’?

    It’s a good idea, and you can add it to the feature requests with some additional details.

    For now, you could certainly hire a developer to hook into that field to refine the query to show only items that are owned by the current user, or to change the field type.

    Let us know how it goes

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

    #402680

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Here is a post about showing current user listings:

    https://wpgeodirectory.com/support/topic/current-user-listings-page/

    Thanks!

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

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

Open Support Ticket