How do i SEO my website to achieve this kind of google search result

enter image description here

I want to achieve this kind of google search result for my website. And it’s custom path. Right now i am using SPA framework. Is there any way i can achieve this using server side coding.

But my main question is, what do i look for to start learning about this. I know SPA is the worst option for google SEO. but i starting making website via WordPress how to i achieve this kind of search result for all my main internal pages of my website.