How to display only the first 2 words of a post title

You can use “wp_trim_words” function for this case. Exam: To display the first two words. echo esc_html(wp_trim_words( get_the_title(), 2, ” ) ); Use this code within your H1 tag. You can control the number of words you want to show in the title by changing the second parameter of the function “wp_trim_words” to know more … Read more

Align block editor

The issue of Gutenberg blocks aligning fully to the left in the editor, leaving no space between the text/images and the left side of the editor, can be caused by a few factors. Here are some potential causes and solutions: Theme or Plugin Conflict A conflict with your active theme or a plugin could lead … Read more

Page List Block doesn’t show all pages in edit

I had the same problem with WordPress 6.6.2, even with the Gutenberg 19.4.0 plugin installed. I have found the following workaround: Temporarily unpublish pages you don’t want to select as the parent page of your page list (set them to draft). Since the dropdown only shows published pages, this will bring up the page you … Read more