Sequentially Number WordPress Posts

Glenn Glenn's Blog 0 Comments

With this WordPress Snippet you can add a Numerical Number to your WordPress Posts or Custom Posts. In this implementation we are creating a custom WordPress Loop and adding a sequential post number  1, 2, 3, 4 etc above the post title:- The numbering comes from the PHP variable ‘$postNumber’ and is automatically incremented on a post by post basis / …

WordPress Show if Custom Meta Exists

Glenn Glenn's Blog 0 Comments

We wanted to share some code with you that we created to show content if a WordPress Custom Meta / Field exieted within a WordPress Custom Post Type. Most versions that we’ve encountered make this a bit cumbersome and we wanted a way to do it with php, but also to include full html within each command. Here’s the snippet:- …