seach all cpt

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

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

Open Support Ticket
  • Author
    Posts
  • #165957

    sumi
    Expired Member
    Post count: 97

    Hi all,

    i have a link to ‘my events’

    Im trying to get search to return results for ALL types of events but dont know how!
    please help.

    e.g. /?geodir_dashbord=true&stype=gd_event = returns events
    /?geodir_dashbord=true&stype=gd_autos = returns autos

    Tried:
    /?geodir_dashbord=true&stype=gd_cpt_listings = no work
    is there a way of doing this, please?

    thanks
    (sorry in advance)

    #165984

    Guust
    Moderator
    Post count: 29970

    What about /events ?
    I am not sure what events you are trying to show.

    #166083

    sumi
    Expired Member
    Post count: 97
    $menuextra1 = '<li><a href="/author/' . $username . '/?geodir_dashbord=true&stype=gd_event">' . __('My Adverts') . '</a></li>';

    this was easy enough with just one CPT, but with multiple – really need search to return values from multiple CPT… or so i would think, or if they is another way of getting around this?

    thanks

    #166340

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    that is impossible I’m sorry. All CPT use a different database table. You would need to write custom queries with several Joins that would result in very slow page loading time.

    Thanks

    #167444

    sumi
    Expired Member
    Post count: 97

    Hi again,
    just thinking…
    would the code for: $tab_array[‘related_listing’] work?
    would i need to work that in something i could type as href link?

    #167918

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I’m not sure I understand the question, I’m sorry.

    Please clarify,

    Thanks

    #169158

    sumi
    Expired Member
    Post count: 97

    think it too difficult to do…
    its ok… thought of something else…

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount