Complex query. Don't know where to start
-
Hi
I am running a travel blog and I try to display a specific list of articles on the frontpage.
I traveled from 2011 until now in many countries. Every post has a date of course and a category (the country). For every year (2014, 2013, 2012, 2011), I want to display 1 post (the last one) for every country visited.
It should look like this :
2014
– Australia : last article about Australia written in 20142013
– Australia : last article about Australia written in 2013
– Papoua new guinea : last article about PNG written in 2013
– Indonesia : last article about Indonesia written in 2013
– Malaysia : last article about Malaysia written in 2013
etcThe list template, if it can help : https://img4.hostingpics.net/pics/128237listarticles.jpg
Do you think it is achievable with a custom query, SQL, hook… ? Or will it need some post processing in php or js for example ?
I haven’t tried yet because I know I will need help to achieve it. I will begin now and report my progress here.
- The topic ‘Complex query. Don't know where to start’ is closed to new replies.