Week 9
This week I spent a lot of time doing research and
finalizing the standards that I would like to use when developing in
WordPress. One of the reasons that
so many people use WordPress is that it’s very simple to use. You add information into html forms on
the admin side, and content displays on the user side in the form of a
webpage. Instead of choosing
a pre-built template, I decided to make my own.
WordPress gives you multiple ways to display information
stored in the database. They have
a variety of built-in functions that display post information. There are actually four different ways
to loop through post content, all which have the same result but are
implemented differently.
For my template I chose to loop through the posts by using
the get_posts() method. To do this
you define an argument array that describes the type, number, and category of
information that you would like to display. This returns a post object, which you then loop through to
output information.
Here is a description of the different kinds of way to loop
through WordPress data:

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home