Reload page part


Hi,

I have a template part wich shows 2 random post titles and 1 random entire post. When clicking on one the titles that post should be shown entirely (replacing the random one) with 2 new random titles. But without refleshing the entire page, only this part. Is there a beans way of uikit way to do this?

Thanks in advance for your help

Lore


Hi Lore,

Unfortunately there is no Beans, UIkit or WordPress built-in option to achieve this out of the box. You will have to write your own JavaScript to handle the ajax reload using the WordPress Ajax API functions and potentially some UIkit stuff (loader for example) for the UI.

Have fun,


I thought so (just wanted to be sure before writing myself).

Thanks for your reply. And yes, I am having fun with beans!

Write a reply

Login or register to write a reply, it's free!