Scroll to top

21/01/2021


No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



2021/01/21#p2

0 comments: click to leave a comment

The rebuild of the Garden home page didn't need the custom walker after all. By adding a filter to wp_list_pages() (which I remove if not logged in) I am able to run a series of preg_replace() functions to restore the inline page deletion and section expand/collapse toggles.

The performance is far superior to running multiple nested queries so it's a big win and shouldn't be impacted too much regardless of how large the garden grows.

Update: The only snag is that I can't separate out the page delete feature and toggles so it's all or nothing. What I may do is move page deletion to the page itself, then I can have the toggle regardless of being logged in or not.

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



Close