Quantcast
Channel: WordpressErrors
Viewing all articles
Browse latest Browse all 147

How To Display Post Meta Data on a WordPress Post

$
0
0

In my last series of articles, we looked at the concepts of object-oriented programming from the perspective of the beginner. The goal of the series was to take those who were not familiar with object-oriented programming in PHP, and explore the foundational aspects of the paradigm within the context of WordPress.If you didn’t have a chance to read the series, you can read a brief summary (along with links to each article in the series) in the final post.During the course of the series, one of the things that we did in order to help demonstrate the object-oriented principles as well as some of the features of the WordPress API was build a plugin. Specifically, we built a plugin that allowed us to view all of the post meta data associated with a given post within the WordPress dashboard.The plugin is available for download on GitHub where you can also browse the source code, view the code comments, and generally see everything that went into creating the plugin when we developed it.Since that particular post was written, I’ve received a number of different questions one of which has been how do we take the data displayed in the dashboard – that is, the post meta data – and display it on the front end of the web site.In this article, we’re going to take a look at extending the plugin such that we can display the data on a single post page

Originally posted here:
How To Display Post Meta Data on a WordPress Post


Viewing all articles
Browse latest Browse all 147

Trending Articles