Giter VIP home page Giter VIP logo

acf-tax's People

Contributors

futuremedia avatar ironprogrammer avatar jordilopez avatar parisholley avatar spinx avatar stewarty avatar will-ashworth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acf-tax's Issues

in_array() expects parameter 2 to be array

Warning: in_array() expects parameter 2 to be array, boolean given in /wp-content/plugins/acf-tax/acf-tax.php on line 200

I changed line 200:
if($field['taxonomy'] == $term->taxonomy && in_array($term->term_id,$field['value'])){
to this:
if($field['taxonomy'] == $term->taxonomy && !empty($field['value']) && in_array($term->term_id,$field['value'])){
...and it works now.

Warning: Invalid argument supplied for foreach()

I get this message when I save posts using WP 3.5.1

Warning: Invalid argument supplied for foreach() in wp-content/themes/xyz/fields/acf-tax.php on line 288

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/themes/xyz/fields/acf-tax.php:288) in /wp-includes/pluggable.php on line 876

Any idea what it might be caused by?

Warning: Division by zero

I have a Warning: Division by zero on two locations. Have no idea what it is. When I work locally the plugin doesn't save the checked boxes, and when I tried it now on a remote server I got this message in the admin interface.

Warning: Division by zero in /theme/acf-tax.php on line 162

Warning: Division by zero in /theme/acf-tax.php on line 168

Wrong datatype for second argument

Hello,
I get this error message after I add the field Tax in Advanced Custom Fields plugin.

"Warning: in_array() [function.in-array]: Wrong datatype for second argument in /themes/test-theme/layouts/acf-tax.php on line 197"

I see the categories but with this error above them.

Any fix I can apply?
Thanks,
Bogdan

Issue with checkboxes not being what were actually chosen

The thing works with Wordpress, technically, but there's one bug I haven't been able to figure out myself yet in the source. Here's an example:

My checkboxes from taxonomy:

Item 1
Item 2
Item 3
Item 4
Item 5

I'll check the following:

Item 1  *
Item 2
Item 3  *
Item 4
Item 5

Upon reload, none of my chosen selections are kept correctly:

Item 1
Item 2  *
Item 3
Item 4
Item 5  *

Any ideas? Been looking in the code at the update and select functions, but everything seems legit. Something's off, though...or it wouldn't be happening.

erroe with ACF 3.4.3

I installed the last update of ACF (3.4.3) and get this error :

Warning: Invalid argument supplied for foreach() in themes/talm/acf-tax.php on line 346

CSS on user fields 2

Also, the vertical-align: text top; gives results that are not better then vertical-align: top; on checkboxes in the user add/ edit screen. Not sure if top is best, but text top gives results that are not aligned.

(using Mac / Firefox 17 )

CSS on user fields

Hi,

Great plugin. When you add a taxonmy checkbox to users the spacing is off.
This seems to be the 95% width rule that is set to input fields.
Maybe give them a more fixed width and indent them as they go?

Thanks!

tax field doesn't work in repeater field

I've updated the following code to make it work:

replace:

if (has_term($term->slug, $term->taxonomy, $post->ID)) {
$selected = 'checked="checked"';
}

With:

if($field['taxonomy'] == $term->taxonomy && in_array($term->term_id,$field['value'])){
$selected = 'checked="checked"';
}

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.