Category: Wordpress
-
How to see the SQL Queries being executed in WordPress REST API
You can add the following filter and you will see the queries in the Response Header.
Quick Guide to Setup a Custom Block for WordPress.
The following is a Quick Command which can Scaffold an a Dynamic Block.
How to get Nested Block Template for Custom WordPress Block.
Problem to Solve While creating a Custom WordPress Block I would like to use other Blocks nested inside it such as Group Block and Columns block and further nested blocks. Current Example with InnerBlocks in wordpress only has one Level. Solution An example I found on the internet that works is as follows. Another related…
-
Enhancing Design Control: Styling Inner Blocks in WordPress
Discover two powerful approaches to update the style of inner blocks in WordPress and achieve greater control over their design. The first method involves utilizing React to programmatically modify the styles of individual components, allowing for customized interactions and dynamic styling. The second option focuses on CSS styling in the master block, employing CSS variables…
-
Steps to Build a Tailwinds Theme for WordPress
What are you going to Learn ? Why should we use Tailwind CSS for WordPress Tailwind CSS is an excellent CSS Utility library and since I have started using it I could never go back to Bootstrap CSS Framework. The top Reasons why I love Tailwind CSS. When I first used Bootstrap CSS and many…
-
How to build a Settings Page in WordPress.
Outline To build a WordPress settings page, you can follow these steps: Example for Single Text Field Here is an example of a basic plugin that adds a menu page and displays a form with a single text field:
-
An easy method to write Blocks in WordPress (for Patterns)
What needs to be achieved? Short Answer 😊 Building and Saving new patterns is difficult if your are building complex structures. Long answer (TLDR) 🥱 I am building a Tailwind Theme and want to style some pre-saved blocks into my theme. Now the process of creating these it to create a Nested Structure with the…
-
Removing all the Default Theme Javascript and CSS from a WordPress Template.
Why? Case : Using a VueJS Application in a WordPress Plugin and Theme CSS is Clashing. There are some default CSS/JS which are included in every page + there is the Theme CSS which is also included on every page. I did not required any for it to work on my page. Since you are…
-
Custom Post Type returning only posts belonging to the Author in WordPress REST API
Add the following to your plugin code. Replace ‘goals’ with your content type name. About this solution. The great part about this is that you don’t need to create any custom endpoints to show only the related posts to the author. Can apply very easily for any CUSTOM Posts. Possible Scenarios where can you use…
-
Enabling Filters for Meta Fields in the WordPress Rest API.
WordPress has been an excellent platform and as of now it is gaining popularity as a headless CMS. And I too have chosen to keep WordPress as a headless CMS. And why not WordPress has lots of great features and a very active development community. I mean no software is perfect and the best next…
-
WordPress REST API. Sorting/Orderby for custom meta fields in WordPress and fixing “Invalid parameter(s): orderby”
Why? By default in WordPress you can only use the valid fields which are specified by each post type. Read more on WordPresss REST API documentation. This post is useful to you if you might be receiving an error as following. code “rest_invalid_param” message “Invalid parameter(s): orderby” How can you check which fields are available…
-
WordPress Bulk Delete All comments
Why I need the Bulk Delete option? A few months back I launched a WordPress Website and today when I visited it I saw that my blog has 10,326 Comments. I knew the moment when I saw it that this is all spam. Why the existing Bulk Delete option in WordPress Sucks? Alternate solution. The…
Fixing the WordPress “500 Internal Server Error” while upgrading the server to 7.3 in Cpanel
In Cpanel, I upgraded the server to 7.3 and started receiving 500 Error. I Could quickly fix the error by enabling the following extensions. I hope it helps you!
Keeping wordpress Clean
WordPress is a amazing software and one of the most liked CMS in the world. And I particularly appreciate its ability to be extended. And at the right time it has upgraded itself to become a better editor. But there is one thing which I both love and hate about the wordpress. With a plethora…
Gutenberg and Pods shortcode.
WordPress Pods pretty well supports the Gutenberg editor inside the custom types but when you want to use the ShortCodes to inside the pages when Gutenberg editor you don’t have a way to create them through wizard. After searching the Pods documentation I found that they are building a bock for Gutenberg which started 11…
-
How To Create A WordPress Plugin
Summary : Plugins extend functionality or add new features to your WordPress websites. Plugins are written in PHP Language. As Themes change the look of the website Plugins are Responsible for changing the functionality.