municipio/wp-plugin-acf-website-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

municipio/wp-plugin-acf-website-field

Composer 安装命令:

composer require municipio/wp-plugin-acf-website-field

包简介

Website field for ACF

README 文档

README

Contributors: Jeradin, jmslbam, patrickhafner
Tags: acf, acf add-on, website url, website title
Requires at least: 4.0
Tested up to: 4.0
Stable tag: 4.3

License: GPLv2 or later

Description

Adds a Website Field to Advanced Custom Fields. Select if link should be an external link, if it should show title or the url.

This works with ACF 4 and ACF5 / ACF5Pro.

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed and activated.

Fork Base

This LTS fork is based on Helsingborg stad's ACF Website Field repository at commit 1791416 from 2023-09-22. The upstream commit is not tagged as a release.

The Website field gives a few basic options:

  • Show / Hide Title (if checked to No, than the website URL will show on the front end and the title field will not be shown in the admin)
  • Open in Current Window - default will make all URLs open a new browser window for external sites. ( if checked to Yes, than the admin section will have a checkbox to specify if the link should open the current window.)
  • Return array instead of Link - default will return a formatted URL with option to return as an array.

Source Repository on GitHub

https://github.com/Jeradin/acf-website-field

Bugs, Questions or Suggestions

(https://github.com/Jeradin/acf-website-field/issues)[https://github.com/Jeradin/acf-website-field/issues]

Installation

The Website Field plugin needs to be added to your themes. Download the zip file and upload as any Wordpress plugin.

How to Use

<?php the_field('website')?>

will output:

<a href="http://www.example.com" target="_blank">http://www.example.com</a>

or this (if you select title option):

<a href="http://www.example.com" target="_blank">Catalog</a>

or this (if you select current window option):

<a href="http://www.example.com">Example</a>

If you have the field return an array:

get_field('website')
array(3) { 
	["title"]=> "Example" 
	["url"]=> "http://example.com" 
	["external"]=> "1" 
} 

Frequently Asked Questions

Q: I've activated the plugin, but nothing happens!
A: Make sure you have Advanced Custom Fields installed and activated. This is not a standalone plugin for WordPress, it only adds additional functionality to Advanced Custom Fields.

Screenshots

  1. Website Field.
  2. Front End View.

Changelog

2.1

  • Fixed settings for 5.1 2.0
  • Removed Auto github updater bundle, best to install their plugin : https://github.com/afragen/github-updater
  • Moved validation to the admin section, added HTML5 validation along with basic URL validation.
  • Added placeholder text thanks @chellman
  • Now works with ACF4 & ACF5 thanks @patrickhafner
  • Fixed display of field in seamless mode

1.5.9.5

  • Fixed issue with target link and some wording updates

1.5.9

  • Fixed issue when field was required

1.5.8

  • Replaced with better auto updater code

1.5.6

  • Bug fixes

1.5.5

  • Bug fixes

1.5.1

  • Fixing blank website fields.

1.5

  • Can now return array instead of formatted link.

1.4

  • Auto Update from github!

1.2

  • Merged fixes from jmslbam
  • -slight cleanup

1.1

  • Fixed bugs
  • -trailing urls
  • -not howing up in the admin
  • -other cleanup

1.0

  • Made it an uploadable plugin

0.8

  • Updated code for ACF 4.0

0.7

  • Initial Release

municipio/wp-plugin-acf-website-field 适用场景与选型建议

municipio/wp-plugin-acf-website-field 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 379 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 municipio/wp-plugin-acf-website-field 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 municipio/wp-plugin-acf-website-field 我们能提供哪些服务?
定制开发 / 二次开发

基于 municipio/wp-plugin-acf-website-field 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 379
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 11
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-29