Article suggestions
  1. Home
  2. Section: Developer Hub
  3. Default Post Variable Cheatsheet

Default Post Variable Cheatsheet

Default Post Variable Cheatsheet
  • avatar
Written by Chan Nier
Updated on February 19, 2025

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

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_title Post 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_id ID of Member Integer
group_name Post Title Text Input
group_desc  Post Body Froala
group_location Post Location Textarea
group_date Date Created Timestamp
group_filename Post URL
System Generated VARCHAR
group_status Publish Status Timestamp
group_category Post Category Dropdown Select
lat Latitude Location
Numerical
lon  Longitude Location Numerical
user_id ID of Member Integer
post_tags Post Keywords Text Input
property_status Status of Property Posts Numerical
property_type Type of Property Posts Numerical
property_price Price for Property Posts Numerical
property_beds Number of Beds in Property Posts Numerical
property_baths Number of Beds in Property Posts Numerical
property_sqr_foot Square Footage for Property Posts Numerical
post_location Post Location Textarea
country_sn Country Location Text Input
state_sn State Location Text Input
     

Thank you for leaving a rating!
Did you find this article helpful?
0 out of 0 people found this article helpful so far
Can't find what you're looking for? Get in touch
How can we help?
Send your question below and we'll get back to you as soon as possible.
Cancel
translation missing: en.kb.default.contact_form_error
×
Thanks for your message!
Thanks for your message!
×