Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

149
Visualizações
How to create cards from previous searches

I am creating a website for airline tickets using WordPress.

I want to create a section where a user can visually see cards of his/her previous searches.

Here is a example

enter image description here

Here we can see that a user in the past searched for a flight from Podgorica to Istanbul, and as we can see, when he/she visits the website again, he/she gets a card of the past search they made.

I want to make the same thing, and I know how to do that with only the last search result.

But I don't know how to show 2 or 3 cards.

EXAMPLE: One user searche the first time for Podgorica-Istanbul, the second time Podgorica-Berlin, third time Podgorica-Lisbon. All these searches should be displayed in this section (3 cards).

And I am planning on limmiting the number of cards to 3, because if someone searches 100 times, I don't want to display 100 cards.

Does anyone know in what way should I aproach it?

Thank you very much.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda