Pods Template Tricks for the Post Author

Different ways to display post_author information in Pods Templates

When you’re working in Pods Templates, occasionally you need to show some of those great WordPress functions about the Post Author. Did you know you can often just push the post_author into a function as part of your WordPress Template? These are all done using the Display Filters in Pods Templates. Here’s a few useful examples:

Post Author Output

Display the Author’s real name in a Pods Template:
{@post_author,get_the_author}

Show the Last Modified Author

This is a WordPress Function: get_the_modified_author. Since that function expects the ID of the current post, you can output the last modified author using:

{@ID,get_the_modified_author}. {@ID} contains the current post’s id.

Other Helpful Documentation on Tips & Techniques

Display a Random Post

You handle getting a random post by using the orderby element in a find() or in a Shortcode. If you set the orderby element to RAND() it will put the items in a random order, so then if you set the limit to 1, it will only show one random item, or post.

Displaying Custom Post Types with Default Categories & Tags

Need to make your Custom Post Types show up in the Categories & Tags archives in WordPress? This will fix that.

Grouping Admin Menu Items for Post Types

This is very easy with post types generated by Pods. If you create a Custom Post Type with Pods, you can add this to Parent Menu ID: “edit.php?post_type=top_level_post_type”   Referenced from this article on stackexchange