Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!