Archive | Functions by letter g RSS feed for this section

get_post_custom_values

Retrieve values for a custom post field.The parameters must not be considered optional. All of the post meta fields will be retrieved and only the meta field key values returned.

1589

Continue reading

get_post_custom_keys

Retrieve meta field names for a post.If there are no meta fields, then nothing (null) will be returned.

1587

Continue reading

get_post_custom

Retrieve post meta fields, based on post ID.The post meta fields are retrieved from the cache, so the function is optimized to be called more than once. It also applies to the functions, that use this function.

1585

Continue reading

get_post_class

Retrieve the classes for the post div as an array.The class names are add are many. If the post is a sticky, then the ‘sticky’ class name. The class ‘hentry’ is always added to each post. For each category, the class will be added with ‘category-‘ with category slug is added. The tags are the same way as the categories with ‘tag-‘ before the tag slug. All classes are passed through the filter, ‘post_class’ with the list of classes, followed by $class parameter value, with the post ID as the last parameter.

1581

Continue reading