Description: get_boundary_post is very useful if you want to include show first or last post button below your single post or in you main index page. Parameters: $in_same_cat(optional)(boolean) – true if you want to show the first/last post for the current category $excluded_categories(optional)(string) – String of comma-separated category ids $start(optional)(boolean) – true to show first Basic […]

Description: get_adjacent_post – A WordPress function to retrieve previous or next post. It is mostly useful if you want to integrate go to next/previous post button in your WordPress theme. Parameters: $in_same_cat(optional)(boolean) – If you want to retrieve next/previous post from same category $excluded_categories (optional)(string) – String of comma-separated category ids $previous(optional)(boolean) – If you want […]

Description: the_meta() retrieves an unsorted list of all custom fields of the post. (It must be used in your theme loop). Note: It doesn`t list custom fields which name is preceded by an underscope. Parameters: None Basic usage examples: <p>Unsorted list of custom field=>value for the post</p> <?php the_meta(); ?> //Returns <ul class="post-meta"> <li><span class="post-meta-key">Test custom […]

Description: add_post_meta is a WordPress function which Adds a custom field value to a post by given ID. Very useful for storing additional data to post(like dates for sorting, thumbnail image, links etc..). I`m actively using it with custom post types. Parameters: $post_id (required) – The id of the post on which you want to add […]

Description: get_post_meta Returns the value of the selected Custom Field. It is very useful for advanced custom functionalities(like post thumbnails, sorting data by custom fields, adding additional info in posts etc.). Parameters: $post_id (required) -The id of the post which custom field you want the custom field from $key (required) – The name(slug or meta […]

Description: get_current_blog_id() -The name of the function is pretty self-explanatory.  It returns the id of the current blog. It is not especially useful for normal WordPress installations but it is very important if you`re developing a WordPress MU theme or plugin. Parameters: None Basic usage: echo get_current_blog_id(); //Returns 1(or whatever your blog_id is) Get all […]