How to fix broken media library?

I asked this question and got no help at WordPress.org. Here it is: When I go to my Media Library, I can’t see any of the images: Screenshot: https://postimg.cc/gallery/2rwihw1ty/ Not sure what’s causing this. I attached an image also of the plugins we have installed. No one could give a clear answer on the issue. Where to start? What to check? Thanks, Dan Source: https://wordpress.stackexchange.com/feeds

Web Design Weekly #337

Headlines Design in China Design in China is still relatively new and with that comes unique challenges and opportunities. In this great post, Tobias van Schneider interviews Guang Yu and Nod Young to enlighten us. (vanschneider.com) React Conf (youtube.com) Sponsor Web Design Weekly and reach over 30,191 passionate designers and developers Articles How Facebook 3D Photos Work Facebook recently rolled out a new feature, 3D Photos, or, as they call it in their JavaScript: 2.5D Photos. In this post Yuri Artiukh dives under the hood to see how it is…

wordpress responsive image srcset not working

I’m trying use wordpress core responsive image feature but it’s not adding srcset to image. Here is th my codes I have a div w=370px h=280px now I added image sizes if(function_exists(‘add_image_size’)){ add_image_size( ‘imagebox’, 370, 280, true ); add_image_size( ‘imagebox-2x’, 840, 560, true ); add_image_size( ‘imagebox-3x’, 1110, 840, true );} And calling it inside the loop like this the_post_thumbnail(‘imagebox-2x’); it’s adding only image like this 2x version without srcset <img width= »840″ height= »560″ src= »http://localhost/starter/wp-content/uploads/2018/10/04004_theblackandwhiterocky_2560x1600-840×560.jpg » class= »attachment-imagebox-2x size-imagebox-2x wp-post-image » alt= » »> If I remove the image size from the_post_thumbnail and use it only the_post_thumbnail();…

Remove duplicates – array_unique()

I am trying to make a simple list of names that link to profile information. Some of the people in the list have multiple addresses and therefore appear multiple times in the list (as their addresses will appear on the profile page). I would like to remove the duplicate names. I tried using array_unique() but it doesn’t seem to have any effect, the duplicates still show. Maybe I’m not using it in the right place? I would appreciate the help. Note: using ACF Pro, hence the use of « the_field() » and…

Multiple Tinymce/wp_editor in WordPress >4.8

I’m struggling for two days and started here with success: Why Can’t wp_editor Be Used in a Custom Widget? I managed to have multiple TMCE on one page (displayed by a widget); all save data correctly. When i assign (as required) different IDs to each textfield, i get an upon clicking on the « visual » button (activating tmce): ‘Uncaught TypeError: Cannot read property ‘onpageload’ of undefined’ When I assign a static ID to each textfield, the error is gone, but only the first textfield will get transformed to a tmce; the…

Web Design Weekly #336

Headlines Start Performance Budgeting If you’re building a web experience and want to stay fast, a performance budget can be critical. For success, embrace performance budgets and learn to live within them. (addyosmani.com) Hard Costs of Third-Party Scripts Dave Rupert shares some thoughts around the User Experience costs of third-party scripts. (daverupert.com) Sponsor Web Design Weekly and reach over 30,051 passionate designers and developers Articles How do you organize your design files? If you happen to be lacking a little structure with your files, or are keen to improve on…

Gutenberg Edit Block Inspector Controls and save

I am looking to edit an existing block to add inspector controls that save as meta data. I have been beating my head trying to find how to save the data. The following code adds a text field to the inspector system . I can add the field but for some reason the field does not save. I can not for the life of me figure it out. var el = wp.element.createElement, Fragment = wp.element.Fragment registerBlockType = wp.blocks.registerBlockType, RichText = wp.editor.RichText, BlockControls = wp.editor.BlockControls, AlignmentToolbar = wp.editor.AlignmentToolbar, Fields = wp.components;…

WordPress custom template not showing in the list of available templates

For some reason, my custom template WILL not show up in the backend of WordPress. I have tried the suggestions in this thread: Custom templates not showing up in template dropdown to no avail. It has been more than 1 hour since I created the template. I have removed transients from the database I have checked on the server and the template is definitely there The website is being routed through Clourdflare (I even put the site into development mode) The server type is Litespeed I have exhausted every bit…

ACF: Echo page title when checkbox is checked

How can I show the title when a checkbox is checked. I use Advanced custom fields my field name is nav This is what i currently have. <?php if(get_field(‘nav’)) { ?> <li> <a href= »<?php the_permalink()?> » class= »active »><?php the_title();?></a> </li> <?php } ?> Source: https://wordpress.stackexchange.com/feeds

How to set password from frontend if have activation key and user login in url in wordpress?

I want to give functionality to user, while their account is created in wordpress by administrator at that time set password email is sent to user, which contains custom page link with activation key, login, and action. I have created one shortcode which used in page for set password from front end. I was able to get data from url, and managed to check whether password is match and not empty, but how can i set this password for new users. Any help/suggestion is appreciated. add_shortcode( ‘RESET_PASSWORD’ , ‘reset_password_function’ );…