Rodrigo Salles
Forum Replies Created
-
Thanks! How can I follow this up? Are you going to update this thread when your developers have any updates or should I keep looking for this update on Github? Please just let me know the URL, thanks
Forum: Plugins
In reply to: [Breadcrumb NavXT] Error on new version 7@mtekk We’re also having the same problem. I’ve searched the code and the only thing I found related to the
bcn_settings_initfilter was a modifier from the Breadcrumb NavXT Paths plugin.Do you think that could be affecting it?
- This reply was modified 4 years, 5 months ago by Rodrigo Salles.
- This reply was modified 4 years, 5 months ago by Rodrigo Salles.
Forum: Plugins
In reply to: [Category Order and Taxonomy Terms Order] Stops working with Woocommerce 3.6Same here!
Try changing the line:
$user_id = um_profile_id(); to $user_id = um_profile( 'ID' );I had a problem with that function and the only thing I changed was the way I get the profile ID.. it solved my problem but not sure if it will solve yours..
Hey guys, I THINK I’ve found a workaround for this problem.. All I needed to do was to change my callback function, adding a new “case null” into my switch statement and setup my function parameter to default = null ($country = null). In my case, I have 2 dropdowns, one for Country and another for Cities. Whenever the user changes the Country dropdown, my callback function returns a few cities for the selected country, something like:
function get_cities( $country = null ) { switch( $country ) { case 'Brazil' : $cities = array( "Curitiba" => "Curitiba", "São Paulo" => "São Paulo", ); break; case 'USA' : $cities = array( "Chicago" => "Chicago", "New York" => "New York", ); break; case null : $user_id = um_profile_id(); $user_city = get_user_meta( $user_id, 'city', true ); $cities = array( $user_city => $user_city ); break; default : $cities = array(); } return $cities; }Basically, the problem is that there is a filter um_profile_field_filter_hook__select that’s resetting the value when displaying the field on the profile page (view mode). That happens because the plugin calls your callback function expecting it will get an array of choices (ie. cities) but it doesn’t pass the valeu of the parent field to the function.. o.O
So, if your callback function was like mine, with the default returning an empty array, this empty array was being returned to the filter, which was resetting the value of the variable used for displaying the field on the profile page.
Since this filter doesn’t pass any parameter to the callback function, I just setup the param $country to default to null, and then return the correct value of the field (city) in the array..
I am not sure what that could cause in other parts of the plugin, but it worked for me.. Hope that helps
/,,/
@degami Thanks for sharing your solution! It will now probably be 2 of us using your approach 😀
I’ve submitted a ticket for their support team (I have a license for their bundle add-ons) and will see what they say.Another problem I just noticed is that those parent/child/callbacks fields don’t work as search filters.. I setup 2 dropdowns (parent and child) as filter but the child doesn’t get populated and changing the parent.. so that’s another problem I still have to solve.
I will share the info if I got some good news from them. Thanks!
Same here, any chances for adding options to select image sizes to be used or created as attachment in WordPress? Thanks for the great plugin.
Forum: Plugins
In reply to: [Gravity Forms - Update Post] “a:0:{}” appears in some custom fieldsI’ve seen that in my custom fields, too. Shouldn’t it be saved as empty string instead of “a:0:{}”?
Any fix for that?
thanks,