Skip to content

WordPress Educator Zac Gordon

A Blog for Tutorials, Free Videos, and Updates on Courses, Talks and Workshops

  • Twitter
  • Github
  • LinkedIn
  • Main Site
  • Blog
  • Courses
  • Speaking
  • About
  • Contact

Tag: template files

How to Embed a Shortcode from a Plugin Directly into a Template File

I recently came across a great shortcode that I wanted to embed directly into a template, rather than use as a shortcode from within the admin area. If you ever need to do this you can use the do_shortcode function, and pass any necessary parameters as you would need. <?php echo do_shortcode('[shortcode with="parameters"]'); ?>

Zac WordPress Plugins, WordPress Theme Leave a comment February 25, 2014

If You Don’t Know the Difference Between font-page.php and home.php Here’s What’ Up

This is something that came up as an issue during my How to Build a WordPress Theme project for Treehouse. I found Chip Bennet had a pretty good explanation on his blog.

Zac WordPress Theme Leave a comment October 19, 2013

Create a Custom Archives Page Like WP Beginner

WP Beginner recently published a tutorial showing how to create a custom archives page. I really support the idea of breaking the mold from traditional WordPress archive page layouts.

Zac WordPress Theme Leave a comment July 24, 2013

How to Get Post Type within WordPress Loop

There are some times when you want to test for the post type of an item in your loop. You may use this in your functions.php file for taking dynamic actions for custom post types, or you may need to use it directly in your template. Either way, here is how you would save the … Continue reading How to Get Post Type within WordPress Loop →

Zac WordPress Tips 3 Comments March 15, 2013

About Zac

Zac Gordon is a professional educator with a current focus on JavaScript for WordPress.  Zac has years of experience teaching at high schools, colleges, bootcamps and online learning sites like Treehouse, Udemy and Frontend Masters.  In addition to teaching, Zac also runs Web Hosting for Students and offers free weekly online Office Yoga.

Search Articles

Popular Topics

Actions Admin Area API Child Theme Code Codex CSS Development Editor Education Filters Framework Frameworks Functions functions.php Gutenberg Hack Hooks JavaScript LearnDash Learning Migration php Plugin Plugin Development Plugins Podcast Presentation redesign Review Search Security Shortcodes Slides Speaking Templates Theme Development themes Treehouse Tutorial Tutorials UI Video WooCommerce WooThemes WordCamp WordPress.tv Workshop WP Beginner WPTuts

Follow Zac on Twitter

My Tweets
Follow WordPress Educator Zac Gordon on WordPress.com
A WordPress.com Website.
Cancel