Instead of listing all post reactions – comments, trackbacks, and pingbacks – in one list, I like to separate comments and pings (pingbacks and trackbacks) for the sake of clarity. That is not too difficult, but there are a few things to consider.
Continue reading "Separate comments and pings in a WordPress theme"Blog
WordPress weekly recap #27: Questions regarding new feature development for WP-CLI and more
The WP-CLI team wants to get input from the community, regarding questions on new feature development.
Continue reading "WordPress weekly recap #27: Questions regarding new feature development for WP-CLI and more"Auto updates for WordPress themes and plugins from private GitLab repos
The last few days I worked on the following scenario: a WordPress plugin or theme gets its update from a private GitLab repo and checks the Git tags for a new version. The result is a WordPress plugin, which also can be integrated into a plugin or theme directly.
Continue reading "Auto updates for WordPress themes and plugins from private GitLab repos"WordPress weekly recap #26: new contributors meeting and more
The core team decided to hold a weekly meeting, focusing on answering questions from new contributors, helping with patches and tickets and going through the good-first-bugs tickets.
Continue reading "WordPress weekly recap #26: new contributors meeting and more"Use selective refresh in the customizer
Since WordPress 4.5, we can reload only parts of the customizer preview after a setting has changed. With that, the user has — at least — the feeling of a faster experience. And in most cases, it will be actually faster (and besides that, this feature could eliminate the customizer page and replace it with inline editing, writes Weston Ruter in his post »Selective Refresh in the Customizer«). Here I show you how to implement selective refresh.
Continue reading "Use selective refresh in the customizer"WordPress weekly recap #25: 4.9 brainstorming and more
One topic of the core chat was to brainstorm ideas for the next larger WordPress release 4.9.
Continue reading "WordPress weekly recap #25: 4.9 brainstorming and more"Conditional displaying and hiding of customizer controls via JavaScript
When using Partial Refresh in the customizer to reload only a part of the preview after changing a setting’s value, the active_callback for these settings is not working anymore. With active_callback
you can, for example, show a control only if another control has a particular value. In that case, the conditional displaying has to be done with JavaScript.
WordPress weekly recap #24: permalink popup component for Gutenberg and more
Not a very busy week. The Gutenberg editor got a permalink popup component.
Continue reading "WordPress weekly recap #24: permalink popup component for Gutenberg and more"Kick off reload of customizer preview from the preview
In my Photographus theme, I needed to reload the customizer preview from the preview in a specific case. After searching for a short while, I found the post »Implementing Selective Refresh in the Customizer« by Weston Ruter.
The problem is solved with the following JS line:
wp.customize.preview.send('refresh');
Code language: JavaScript (javascript)
WordPress weekly recap #23: WordPress 4.8 and more
WordPress 4.8 was released this week. Among other things, it brings visual text formatting to the text widget.
Continue reading "WordPress weekly recap #23: WordPress 4.8 and more"