In below post you will get most useful WordPress functions for the post types and pages. with the help of below function you can deal with WordPress easily.
- get_adjacent_post: This function gives the adgacent post from wordpress posts.
- get_next_post : This function return the next post of current post.
- get_permalink : This function gives the permalink of the post.
- the_excerpt : This function gives the excerpt text of the post.
- get_post : In return you will get post.
- get_post_ancestors : This function return the previous post.
- get_post_status : This function return the current status of the post like Published, Draft or trashed.
- get_previous_post : It will return the previous post.
- get_posts: This function will return the all posts in the database.
- have_posts : Check Database contain posts or not.
- the_ID : This function return the ID post.
- the_post : Content of the post like Title and Body
- has_excerpt : The post has excerpts check by this function.
For more updates on word-press you can check our blog. have a great fun with WordPress.
Thanks
You must be logged in to post a comment.