Categories
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 […]

Categories
WordPress

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 […]

Categories
WordPress

How To Add Timestamp Links In Your Podcast Show Notes

If you don’t know I have a podcast that I do over at 2DWebsolutions with Kerry Carron. Each month we answer questions that are submitted on our site, via our app, or in the Slack group. From the beginning we added the questions discussed in the show notes. As early as episode two we started […]

Categories
Code Snippets WordPress

WooCommerce Shipping Options Based on Weight

WooCommerce shipping options based on weight can be accomplished by creating a callback function for the woocommerce_cart_shipping_packages filter. The filter hook allows you to make a change to the cart package such as conditional shipping options based on shipping class, location, or weight. To get the weight of all the products in the shopping cart […]

Categories
Code Snippets jQuery WordPress

Mobile Friendly Menu

In this tutorial I explain how to create a mobile friendly menu for the iThemes Builder theme. By default the menu will wrap on smaller screens. When the menu wraps it is not very mobile friendly. In your child theme directory create a new file for some jQuery. You can call it what you want […]