Load new posts while still displaying others
I’m doing a page for a job and I need help for a complex (for me) setup.
The idea is have a static number of posts which will be used as normal pages related to several issues of the enterprise. This way, client can edit itself some contents avoiding the need of continuous actions for the designer-developper. So it’s not an standard blog installation, but at a glance nor difficult too.
Second issue is that some posts are related to A subject while the rest are related to B subject. Posts related to A subject should load at the left area of the page, while posts related to B subject should be loaded at the right. Until now there’s no problem, playing with loops, categories and so do the job.
But there’s more. As said, I want only to show two posts at once, one A type post and the other B type post in their corresponding areas. The problem is that when i click to a link in order to load A post, for example, B post disappears, or viceversa according how the loop and if-else’s are configured.
So I thought my problem may be related to loading dynamic content through AJAX, but I hope there’s another solution because I have no idea about AJAX nor PHP relevant skills. As you probably guess, I’ve read documentation about multiple loops and category-template custimization, but i think the solution comes not (only) by this means.
I hope to be explanatory and to find a solution… I’m so tired after a month of googling 😉
Some ascii art can help
link A 1 link A 2 link A 3 | link B 1 link B 2 | | | load here | load here A post | B post while keeping B | while keeping A on place | on place
- The topic ‘Load new posts while still displaying others’ is closed to new replies.