WordPress

How to Choose a Random Post with a Custom Post Type in a WordPress Shortcode

I’d like to show you how to choose a random quote from the quotes custom post type I showed you how to create in this post. In my last post, I showed you how to create a basic WordPress Shortcode. We must first query the database for the custom post type: I add that code …

How to Choose a Random Post with a Custom Post Type in a WordPress Shortcode Read More »

Adding a WordPress Custom Post Type with Custom Taxonomies

I’m working on a random quote generator for one of my sites. I decided to create a custom post type called ‘quote’. I wanted to create a custom taxonomy for quote categories and another for quote tags since I want these categories and tags to be separate from the other categories and tags on the …

Adding a WordPress Custom Post Type with Custom Taxonomies Read More »

Scroll to Top