Code Snippets WordPress

How To Change The Order of Custom Post Type On Admin Edit Screen

I have been working on a new plugin that utilizes the new Gutenberg, blocks editor. I wanted to change the order of the custom posts on the edit screen so that they are not ordered by name, as shown below.   Since the posts on the edit screen are displayed from wp_query I filtered pre_get_posts […]


How To Access PODS Custom Post Types Using The WP Rest API

Recently I have been working with the WordPress Rest API to use WordPress as a data source. One of the issues that I ran into is when trying to access custom post types created with pods. When trying to access the end point for the custom post type I received the following error: {“code”:”rest_no_route”,”message”:”No route […]