Linux 软件免费装
Banner图

KlyDexa Link Actions for ACF

开发者 klydexa
更新时间 2026年10月27日 23:04
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

lightbox popup acf video popup acf link

下载

1.0.0

详情介绍:

KlyDexa Link Actions for ACF extends Advanced Custom Fields with standard links, image gallery popups, video modals and shortcode-powered interactive content using a lightweight, accessible frontend implementation. It adds one new field type, KlyDexa Link Actions. For each link, editors choose one of four actions: ACF's own Link field is not changed in any way. Lightweight and accessible Privacy The plugin makes no remote requests itself, uses no external services, and collects no data. YouTube and Vimeo videos are embedded only when a visitor opens the popup. From that moment, the visitor's browser connects to YouTube (through the privacy-enhanced youtube-nocookie.com domain) or Vimeo (with "do not track" requested), and those services may set cookies or collect data under their own privacy policies. Mention this in your site's privacy policy if you use external videos. Independent extension KlyDexa Link Actions for ACF is developed by KlyDexa. It is not affiliated with, endorsed by or supported by the developers of Advanced Custom Fields. Advanced Custom Fields is not included and must be installed separately.

安装:

  1. Install and activate Advanced Custom Fields (free) or ACF PRO, version 6.0 or later.
  2. Install and activate KlyDexa Link Actions for ACF.
  3. In ACF, edit a field group and add a field of type KlyDexa Link Actions (in the Relational category).
  4. Optional: if editors should be able to show shortcodes in popups, go to Settings > Link Actions for ACF and select the allowed shortcodes.
  5. Display the field in your theme:
<?php echo klydexa_link_actions_for_acf_render( get_field( 'my_link_action' ) ); ?> Or set the field's Return format to "Rendered HTML" and use the_field( 'my_link_action' ).

屏幕截图:

  • Selecting and reordering gallery images.
  • An image gallery popup on the front end.
  • A video popup.
  • Settings > Link Actions for ACF, where administrators allow shortcodes.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this plugin work without ACF?

The field type needs Advanced Custom Fields 6.0 or later, free or PRO. Without it, the plugin shows a notice to administrators and does nothing else.

Which shortcodes can editors use?

None, until an administrator allows them under Settings > Link Actions for ACF. Every user who can edit a Link Action field can then use the allowed shortcodes with any attributes, so allow only shortcodes that are safe for those users. Developers can also allow shortcodes with the klydexa_link_actions_for_acf_allowed_shortcodes filter.

Will every shortcode work in a popup?

No plugin can promise that. The shortcode is rendered on the server when the page loads and stays in place on the page, so ordinary forms keep working. However, some plugins load their scripts only on certain pages, measure their content when the page loads (which fails while the popup is hidden) or expect to appear only once per page. Test each shortcode you allow. See the developer documentation for the kdlaa:open event, which can be used to re-initialize such content.

Which video services are supported?

YouTube and Vimeo page addresses, for example https://www.youtube.com/watch?v=…, https://youtu.be/… or https://vimeo.com/…. Embed codes and other services are not accepted.

Does the video start automatically?

When "Start video when the popup opens" is on (the default), playback starts after the visitor clicks the link, which counts as their request to play. Some browsers still require a second click, for example on mobile data-saving modes.

Can I style the popup?

Yes. All classes start with kdlaa-, and colors, radius and widths are CSS custom properties on .kdlaa-dialog. You can also pass extra CSS classes to the link with the class argument of the render function.

Does it work with caching and optimization plugins?

Yes. The markup does not depend on the visitor, and the script is a standard deferred footer script with no inline configuration. Excluding it from combining is not required.

What happens when I uninstall the plugin?

The shortcode allowlist setting is deleted. Link Action field values are your content and are kept in the database.

更新日志:

1.0.0