Can i forget about the post loop inside the page template?
On single page and post templates the main loop is only ever going to contain one post, so you don’t need to worry about duplicate IDs in your example.
On single page and post templates the main loop is only ever going to contain one post, so you don’t need to worry about duplicate IDs in your example.
It seems like you have pluign updates as well, have you tried them and see if it changes? Also you can inspect the html code and see which css is causing the size of the images, on the browser’s dev console, usually available on right click on any page.
The reason they are curving is because they have a border-radius set to 5px. Go to Elementors edit gallery then click on the “style” tab and you should see border-radius there. Edit this to be “0 0 0 0” and it will make your corners straight.
The fundamental problem is that the code tries to use the REST API endpoint before the endpoints have been registered. Specifically it needs to do this after the rest_api_init hook has fired. Try to do it on a hook that runs after plugins and theme are loaded such as wp_loaded. In general avoid doing work … Read more
As per jQuery documentation, dataType: ‘json’ is supported. That is the thing that is being returned and parsed by jQuery to your success function. There is more information needed to resolve your issue. Does pin_shop.ajax_url properly resolve to //site.com/wp-admin/admin-ajax.php? If not, there’s your first problem. (To check this, console.log(ajax_url); just before your $.ajax call. I … Read more
I have found out how to track the object, by using the debug_print_backtrace() within the constructor, and now my issue has been solved
You can add a parameter to your shortcode function and use this value to check if the user is allowed to view the content: function func_check_user_role( $atts, $content = null ) { $user = wp_get_current_user(); $user_role = $atts[‘role’]; $allowed_roles = []; array_push($allowed_roles , $user_role); if ( is_user_logged_in() && array_intersect($allowed_roles, $user->roles ) ) { return $content; … Read more
The number in the last argument to add_filter() needs to match the number of arguments accepted by the callback function. Your function now accepts 4 arguments: function eodwp_menu_item_class( $classes, $item, $args, $depth) { So that last number needs to be 4: add_filter( ‘nav_menu_css_class’, ‘eodwp_menu_item_class’, 10, 4 );
You should be able to add more colors using the add_theme_support function as per the docs here add_theme_support( ‘editor-color-palette’, array( array( ‘name’ => __( ‘strong magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘strong-magenta’, ‘color’ => ‘#a156b4’, ), array( ‘name’ => __( ‘light grayish magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘light-grayish-magenta’, ‘color’ => ‘#d0a5db’, ), array( ‘name’ => __( … Read more
Found the culprit. It was the Mailchimp plugin. After I changed the address it worked.