Home › Forums › Backend Issues (wp-admin) › Tabs – On save post, bouncing back to first tab › Reply To: Tabs – On save post, bouncing back to first tab
This bugged me a lot. So I wrote a small class to handle this:
https://gist.github.com/gchtr/2d371918f3778683c61f629dbc545972
Whenever a tab is selected in a post, a transient containing the current tab index is saved via AJAX. When a post is loaded, it checks the transient and selects the last selected tab via JavaScript.
Hopefully, a proper solution for this will soon be implemented into ACF.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.