Default Post Variable Cheatsheet

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000022882

For 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. 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

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



Standard Post Types

Variable AttributeDescriptionType
post_idPost IDInteger
post_titlePost TitleText Input
post_content Post ContentFroala Text Editor
post_category Post CategoryDropdown Select
post_filename Post URLSystem Generated VARCHAR 
post_image Post Image URLSystem Generated VARCHAR 
post_price Price of ItemNumerical
post_date Date Post CreatedTimestamp
post_tagsPost KeywordsText Input
post_statusPublish StatusYes/No
post_live_dateDate Post CreatedTimestamp
user_idID of MemberInteger
post_expire_dateEnd/Expire DateTimestamp
post_start_dateStart/Publish DateTimestamp
latLatitude LocationNumerical
lon Longitude LocationNumerical
post_locationPost LocationTextarea
country_snCountry LocationText Input
state_snState LocationText Input





Group Post Types

Variable AttributeDescriptionType
post_idPost IDInteger
user_idID of MemberInteger
group_namePost TitleText Input
group_desc Post BodyFroala
group_locationPost LocationTextarea
group_dateDate CreatedTimestamp
group_filenamePost URL
System Generated VARCHAR 
group_statusPublish StatusTimestamp
group_categoryPost CategoryDropdown Select
latLatitude Location
Numerical
lon Longitude LocationNumerical
user_idID of MemberInteger
post_tagsPost KeywordsText Input
property_statusStatus of Property PostsNumerical
property_typeType of Property PostsNumerical
property_pricePrice for Property PostsNumerical
property_bedsNumber of Beds in Property PostsNumerical
property_bathsNumber of Beds in Property PostsNumerical
property_sqr_footSquare Footage for Property PostsNumerical
post_locationPost LocationTextarea
country_snCountry LocationText Input
state_snState LocationText Input