Code Monkey home page Code Monkey logo

acf-smart-button's People

Contributors

cyberwani avatar davemac avatar daviddarke avatar dejong avatar gillesgoetsch avatar jameelmoses avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acf-smart-button's Issues

Do not return if not set

Currently returns same page as url attribute. Should return false to allow correct casing of button

Packagist

Hi love the plugin.

I noticed you have added a composer.json file but I was just wondering if you have submitted it to packagist yet (https://packagist.org/) since I can't seem to install it through composer.

Illegal Offset Warning

Getting an illegal offset warning coming from line 135-139 on acf-smart-button-v5.php

/* overwrite fields with empty values to avoid warning */
$field['value']['text'] = isset($field['value']['text']) ? $field['value']['text'] : null;
$field['value']['link'] = isset($field['value']['link']) ? $field['value']['link'] : null;
$field['value']['post_id'] = isset($field['value']['post_id']) ? $field['value']['post_id'] : null;
$field['value']['use_external'] = isset($field['value']['use_external']) ? $field['value']['use_external'] : null;

Having issues with 'Required' toggle

I'm able to publish the post/page even if the smart button field is set to be required and the field is left blank. Anyone else have this issue?

Smart button internal links fields empty when opening post in editor.

When I open a page or post in the editor with one or more smart buttons, I noticed that fields for internal links (post objects) are empty. This doesn't happen for external links. Text fields maintain values for both internal and external links. whenever I edit a page or post with smart buttons and save content, smart buttons on this page or post dissappear, because of the empty fields for internal links. Other act-smart-button is version 1.0.0, ACF is version 5.6.5, Wordpress 4.8.3 and PHP 7.0.

Edit: Empty fields for internal link only occur when a custom post type post is selected in the link field. It doesn't happen for posts or pages.

Plugin Version

Hi,

Thanks for your plugin !
You do not update your version number during merges in master. Would it be possible to set up a versionning SEM system?

Best,

Vanilla PHP example

Any chance of a vanilla PHP example, rather than the abstracted Twig example of how to use it?

Add tag for 1.0.0

Please add a git tag for 1.0.0, so that we can pull that version down via composer. Thanks!

Request: Adding the fancy checkbox as a true/false ACF field?

Hi Gilles,

I stumbled upon your plugin by chance and saw how you implemented a nice animated checkbox into your field. Is there any way that could be turned into a new ACF field that can be used instead of the True/False field in ACF? I'd love to see something like that, but haven't been able to make that work at all (probably of my lack of JS skills :-).

Including in theme

hey!
When I've added plugin to theme $dir path is going to plugins directory :(

So, my solution is
$dir = str_replace(get_home_path() ,'/', dirname(__FILE__));

Can you check it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.