Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda