Default Post Variable Cheatsheet

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000022882-default-post-variable-cheatsheet

developers, adding and editing PHP post variables is possible. By default, the platform includes variables that can be echoed using PHP within Post templates.

There are two categories that all Post Types fall into:

  • Standard Post Types
    • These post types only support a single feature photo uploaded for the post. Additional photos can be added into description of the post using the text editor when creating the post.
    • Examples:
      • Community Articles
      • Website Blog Articles
      • Events
      • Job Listings
      • Coupons

  • Multi-Photo Post Types
    • These post types support uploading multiple photos to create a photo gallery for the post. And this post type also supports adding additional photos into the description of the post using the text editor when creating the post - similar to the Standard Post Types.
    • Examples: 
      • Photo Albums
      • Classified Listings
      • Property Listings
      • Product Listings



The variable list below are used by PHP developers to echo default values that are supported by Standard Post Types and Multi-Photo Post Types. 



Standard Post Types

Variable Attribute
Description
Type
post_id
Post ID
Integer
post_titlePost Title
Text Input
post_content Post Content
Froala Text Editor
post_category Post Category
Dropdown Select
post_filename Post URL
System Generated VARCHAR 
post_image Post Image URL
System Generated VARCHAR 
post_price Price of Item
Numerical
post_date Date Post Created
Timestamp
post_tags
Post Keywords
Text Input
post_status
Publish Status
Yes/No
post_live_date
Date Post Created
Timestamp
user_id
ID of Member
Integer
post_expire_date
End/Expire Date
Timestamp
post_start_date
Start/Publish Date
Timestamp
lat
Latitude Location
Numerical
lon Longitude Location
Numerical
post_location
Post Location
Textarea
country_sn
Country Location
Text Input
state_sn
State Location
Text Input





Group Post Types

Variable Attribute
Description
Type
post_id
Post ID
Integer
user_idID of Member
Integer
group_namePost Title
Text Input
group_desc Post BodyFroala
group_locationPost LocationTextarea
group_date
Date Created
Timestamp
group_filenamePost URL
System Generated VARCHAR 
group_statusPublish StatusTimestamp
group_category
Post Category
Dropdown Select
lat
Latitude Location
Numerical
lon 
Longitude Location
Numerical
user_id
ID of Member
Integer
post_tags
Post KeywordsText Input
property_status
Status of Property PostsNumerical
property_type
Type of Property PostsNumerical
property_pricePrice for Property Posts
Numerical
property_beds
Number of Beds in Property PostsNumerical
property_baths
Number of Beds in Property Posts
Numerical
property_sqr_foot
Square Footage for Property PostsNumerical
post_location
Post Location
Textarea
country_sn
Country Location
Text Input
state_sn
State Location
Text Input