WordPress Cheat Sheet – Function Reference

WordPress cheat sheet or functions reference help WordPress developers and students who learning to code in WordPress. WordPress cheat sheet help to rapid development of WordPress website. In WordPress files there are many PHP functions defined . Those functions are called template tags.

Some functions are used for developing plugins and some for WordPress core functionalities.

So, the cheat sheet of WordPress functions by category are listed below:

Page, Post, Custom Post Type, Bookmarks and Attachments Functions

Posts

get_post()

Retrieves post data given a post ID or post objects.

get_post_field()

It retrieve data from post field based on post ID.

the_post()

This function iterates the post index in loop.

have_posts()

This function checks that whether current WordPress query has posts to loop over.

write_post()

Function call wp_write_post and handle errors.

query_posts()

Set up the loop with query parameters.

Share This!

Leave a Reply

Your email address will not be published. Required fields are marked *