Wednesday, January 1, 2014

Worpress Basics

List of a few important functions for creating wordpress themes and plugins.


  1. have_posts checks if the posts are available in wordpress database or not.
  2. the_post takes the current item in the collections of posts and makes it available for use in the iteration of the loop.
  3. the_id provides the id of the current post in the iteration.
  4. the_content fetches the content of the current post in the iteration, filters it and displays it.
  5. the_title provides the title of the current post


Additional post meta data:

  1. the_category gives the category in which the post was posted.
  2. previous_posts_link to move back to previous link
  3. next_posts_link to move next post in the collection

No comments:

Post a Comment