douju5062
2016-10-19 14:30
浏览 47
已采纳

高级自定义字段:Image Crop Add-on插件在Wordpress中对我无效?

I am using Wordpress 4.6.1 version. first time, I install the plugin and activate it. second time, I copied plugin folder into my theme and paste this code into functions.php

add_action('acf/register_fields', 'my_register_fields');

function my_register_fields()
{
    include_once('acf-image-crop/acf-image-crop.php');
} 

But both time i don't see any options like this enter link description here

I also R&D on this but get nothing. please someone guide. Thanks in advance.

图片转代码服务由CSDN问答提供 功能建议

我使用的是Wordpress 4.6.1版本。 第一次,我安装插件并激活它。 第二次,我将插件文件夹复制到我的主题并将此代码粘贴到functions.php

  add_action('acf /  register_fields','my_register_fields'); 
 
function my_register_fields()
 {
 include_once('acf-image-crop / acf-image-crop.php'); 
} 
   
 
 

但是这两次我都没有看到像这样的选项 在此处输入链接描述

我也对此进行研发,但什么都没有。 请指导某人。 提前致谢。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongpixi2648 2016-10-19 18:09
    已采纳

    Firstly, make sure you've tried the following steps:

    1. Downloaded ACF plugin and add it to your site, activated it.
    2. Downloaded the ACF Image crop plugin and moved it into your theme folder
    3. Added the specified code to your functions to register the acf image crop

    If you've tried all of the above, try adjusting the acf-image-crop code to the following:

    add_action('acf/register_fields', 'my_register_fields');
    
    function my_register_fields()
    {
        include_once(get_template_directory_uri() . 'acf-image-crop/acf-image-crop.php');
    } 
    
    点赞 评论

相关推荐 更多相似问题