negru13
Forum Replies Created
-
Great job Raul, thanks!
Solution:
If you use it with the shortcode:
Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
find line 75
$output .= '<script>jQuery(window).load(function(){';
and replace it with:
$output .= '<script>jQuery(window).on("load", function(){';
Save & close.If you use the widget:
Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
find line 61
jQuery(window).load(function(){
and replace it with:
jQuery(window).on('load', function(){
Save & close.That’s it! Cheers!
Forum: Plugins
In reply to: [Twenty20 Image Before-After] JS Error and images not displaying since WP 5.6Solution:
If you use it with the shortcode:
Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
find line 75
$output .= '<script>jQuery(window).load(function(){';
and replace it with:
$output .= '<script>jQuery(window).on("load", function(){';
Save & close.If you use the widget:
Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
find line 61
jQuery(window).load(function(){
and replace it with:
jQuery(window).on('load', function(){
Save & close.That’s it! Cheers!
Forum: Plugins
In reply to: [Twenty20 Image Before-After] JS Error since WP 5.6Solution:
If you use it with the shortcode:
Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
find line 75
$output .= '<script>jQuery(window).load(function(){';
and replace it with:
$output .= '<script>jQuery(window).on("load", function(){';
Save & close.If you use the widget:
Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
find line 61
jQuery(window).load(function(){
and replace it with:
jQuery(window).on('load', function(){
Save & close.That’s it! Cheers!
Forum: Plugins
In reply to: [Twenty20 Image Before-After] Before and after not showingSolution:
If you use it with the shortcode:
Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
find line 75
$output .= '<script>jQuery(window).load(function(){';
and replace it with:
$output .= '<script>jQuery(window).on("load", function(){';
Save & close.If you use the widget:
Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
find line 61
jQuery(window).load(function(){
and replace it with:
jQuery(window).on('load', function(){
Save & close.That’s it! Cheers!
Forum: Plugins
In reply to: [Twenty20 Image Before-After] Console JS error since update WP 5.6Solution:
If you use it with the shortcode:
Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
find line 75
$output .= '<script>jQuery(window).load(function(){';
and replace it with:
$output .= '<script>jQuery(window).on("load", function(){';
Save & close.If you use the widget:
Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
find line 61
jQuery(window).load(function(){
and replace it with:
jQuery(window).on('load', function(){
Save & close.That’s it! Cheers!
Forum: Reviews
In reply to: [WP Post Rating] not working – errors after activateSure, I’ve modified the review. Good luck with the plugin!
- This reply was modified 4 years ago by negru13.
Same REST API error here.. please take a look at your code.
Forum: Plugins
In reply to: [User Profile Picture] REST API Errors+4 Same error here man. Please take a look at your code.
- This reply was modified 4 years ago by negru13.
Since no one answered this is all that I’ve managed to achieve, maybe it serves anyone else stuck in this matter:
add_filter( 'um_first_name_form_edit_field', 'my_form_edit_field', 10, 2 ); function my_form_edit_field( $output, $mode ) { $fields = UM()->builtin()->get_specific_fields( 'first_name' ); foreach ($fields as $key => $value) { $fields['first_name']['placeholder'] = $fields['first_name']['title']; $field_value = get_user_meta(um_user('ID'), $key, true) ? : ''; $output = '<div class="um-field um-field-'.$key.'" data-key="'.$key.'"> <div class="um-field-label"> <label for="'.$key.'">'.$fields['first_name']['title'].'</label> <div class="um-clear"></div> </div> <div class="um-field-area"> <input class="um-form-field valid " type="text" name="'.$key.'" id="'.$key.'" value="'.$field_value.'" placeholder="'.$fields['first_name']['title'].'" data-validate="" data-key="'.$key.'"> </div> </div>'; //echo $output; } return $output; }
I still need a way to do this for all the fields not only for a specific one like this.
So, what should I do here? It’s been 2 weeks. How do I get this plugin to display the correct price instead of 0.0?
Hi,
Yes, all settings that you highlighted are the same on my side. Also, I’ve noticed that on my product page in the backend I get “Invalid product to use this tool!”.
My website is on my localhost for testing purposes..Forum: Plugins
In reply to: [Custom Post Type UI] PHP Warning: Invalid argument supplied for foreach()Ok, I see here is the data:
{"project":{"name":"project","label":"Projects","singular_label":"Project","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","excerpt","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category"],"labels":{"new_item":"Project","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":""},"custom_supports":""},"homepage_featured":{"name":"homepage_featured","label":"Homepage featured","singular_label":"homeage featured","description":"posts that appear in homepage ","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":[],"taxonomies":[],"labels":{"new_item":"homepage_featured","archives":"homepage_featured","name_admin_bar":"homepage_featured","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"team_member":{"name":"team_member","label":"Team","singular_label":"Member","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","custom-fields","page-attributes"],"taxonomies":[],"labels":{"new_item":"team_member","menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":""},"custom_supports":""}}
Forum: Plugins
In reply to: [Custom Post Type UI] PHP Warning: Invalid argument supplied for foreach()Sure, here:
First
name: project label: Projects singular_label: Project description: "" public: true publicly_queryable: true show_ui: true show_in_nav_menus: true show_in_rest: false rest_base: "" rest_controller_class: "" has_archive: false has_archive_string: "" exclude_from_search: false capability_type: post hierarchical: false rewrite: true rewrite_slug: "" rewrite_withfront: true query_var: true query_var_slug: "" menu_position: "" show_in_menu: true show_in_menu_string: "" menu_icon: "" custom_supports: ""
Second
name: homepage_featured label: Homepage featured singular_label: homeage featured description: posts that appear in homepage public: true publicly_queryable: true show_ui: true show_in_nav_menus: true show_in_rest: false rest_base: "" rest_controller_class: "" has_archive: false has_archive_string: "" exclude_from_search: false capability_type: post hierarchical: false rewrite: true rewrite_slug: "" rewrite_withfront: true query_var: true query_var_slug: "" menu_position: "" show_in_menu: true show_in_menu_string: "" menu_icon: "" custom_supports: ""
Third
name: team_member label: Team singular_label: Member description: "" public: true publicly_queryable: true show_ui: true show_in_nav_menus: true show_in_rest: false rest_base: "" rest_controller_class: "" has_archive: false has_archive_string: "" exclude_from_search: false capability_type: post hierarchical: false rewrite: true rewrite_slug: "" rewrite_withfront: true query_var: true query_var_slug: "" menu_position: "" show_in_menu: true show_in_menu_string: "" menu_icon: "" custom_supports: ""
This is the info below “Settings”
Update:
The issue was not the plugin, was the wordpress 5.0.3 update that caused the Orders (All) not showing up problem.
For fixing this issue add to your website through a code snippet plugin this code:function fix_request_query_args_for_woocommerce( $query_args ) { if ( isset( $query_args['post_status'] ) && empty( $query_args['post_status'] ) ) { unset( $query_args['post_status'] ); } return $query_args; } add_filter( 'request', 'fix_request_query_args_for_woocommerce', 1, 1 );
This is a temporary fix.
- This reply was modified 5 years, 10 months ago by negru13.