Shishir Raven

I code things

Wordpress

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 […]
Author
admin
Published
September 5, 2022
Read the Article

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 […]
Author
Shishir Raven
Filed Under
Published
July 29, 2022
Read the Article

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 […]
Author
Shishir Raven
Published
April 5, 2022
Read the Article

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 […]
Author
Shishir Raven
Published
January 25, 2022
Read the Article

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 […]
Author
Shishir Raven
Published
January 24, 2022
Read the Article

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 […]
Author
Shishir Raven
Filed Under
Published
February 24, 2021
Read the Article

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!
Author
Shishir Raven
Filed Under
Published
November 25, 2019
Read the Article

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 […]
Author
Shishir Raven
Filed Under
Published
January 24, 2019
Read the Article

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 […]
Author
Shishir Raven
Filed Under
Published
January 24, 2019
Read the Article

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.
Author
Shishir Raven
Filed Under
Published
December 21, 2018
Read the Article
1 2