Comments on: ACF: Link to Specific Tab https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/?utm_source=rss&utm_medium=rss&utm_campaign=acf-link-to-specific-tab Technology, Travel, and Pictures Sun, 14 Mar 2021 00:12:16 +0000 hourly 1 https://wordpress.org/?v=6.0.1 By: Dan https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/#comment-2713 Sun, 14 Mar 2021 00:12:16 +0000 http://justinsilver.com/?p=3931#comment-2713 I’ll just add for others working on this; this script needs to be enqueued late. I’m using it on the dashboard so I attached it to admin-footer hook, and it worked as expected

]]>
By: Justin Silver https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/#comment-2045 Fri, 26 Feb 2016 21:30:49 +0000 http://justinsilver.com/?p=3931#comment-2045 In reply to Zach Nicodemous.

It should work on the front end as well, you would just need to make sure that you load the JavaScript snippet wherever you want it to run. In short, it just looks at the hash on the URL and tries to find a matching tab, if it can find it it triggers a click event to select it. Nothing front or back end specific.

]]>
By: Zach Nicodemous https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/#comment-2044 Fri, 26 Feb 2016 17:24:07 +0000 http://justinsilver.com/?p=3931#comment-2044 Would this work when the ACF Form is rendered on the front end rather than the backend?

]]>
By: Justin Silver https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/#comment-2006 Mon, 04 Jan 2016 18:20:08 +0000 http://justinsilver.com/?p=3931#comment-2006 In reply to Davide.

It should be possible – I was using the name for readability in the URL, but the field key is also present in an html data attribute. I haven’t tested it but you should be able to replace the instances of

$(button).text().toLowerCase()

with something like

$(button).data('key')

to make it work. I’m including this functionality in the new version of my Validated Field plugin so I’ll see about making it work with both there once I have some time to test.

Good luck!

]]>
By: Davide https://www.justinsilver.com/technology/wordpress/acf-link-to-specific-tab/#comment-2004 Mon, 04 Jan 2016 02:02:22 +0000 http://justinsilver.com/?p=3931#comment-2004 Hi Justin, I have a question.

It is possible to use the unique name of the field (ie field_567be3579e216) and not the name that we set? I’m doing a multilanguage project and the value of the name would not work with another language if not set, it directly.

Thank you very much for helping.

Davide

]]>