How to Add Expire/End Dates to Multi-Photo Posts such as Classifieds, Properties, Photo Albums & Products

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

This article explains how to add end or expiration dates to multi-photo post types. This applies to Photo Albums, Products, Classifieds, and Properties.


There are two methods:

  • Option 1 – Hidden Field method (admin-controlled). An admin adds a Hidden Field to the multi-photo post's custom form and defines the number of days until the post expires. Once that number of days has passed after the post is created, the post is automatically marked as expired and no longer appears in site search results. Members cannot view, edit, or modify this expiration date.
  • Option 2 – Member-selected end date. An admin adds a Custom HTML Field to the multi-photo post's custom form. Members can then select and manage the desired expiration date for their own post.



Option 1: Hidden Field Method


Navigate to Toolbox >> Form Manager, then customize one of the following forms:

  • Feature - Classifieds
  • Feature - Properties
  • Feature - Photos
  • Feature - Products


For this example, the Classifieds form is used.


Click one of the Add Field buttons.



This generates a blank field.



Fill in the fields as shown below, then click Save Changes.



  1. Field Type

    Select: Hidden Field

  2. Field Label Name

    Enter the number of days until the post expires. In this example, 7 represents seven days from the publish date.

  3. Database Variable

    group_date_interval


Option 2: Allowing Members to Specify an End Date 


Navigate to Toolbox >> Form Manager, then customize one of the following forms:

  • Feature - Classifieds
  • Feature - Properties
  • Feature - Photos
  • Feature - Products


For this example, the Photos form is used.


Click one of the Add Field buttons.



This generates a blank field.



Fill in the fields as shown below, then click Save Changes.



  1. Field Type

    Custom HTML

  2. Field Label Name

    [widget=Bootstrap Theme - End DateTime Picker - Group]

  3. Database Variable

    group_date_calendar


The field appears when creating a new Photo Album post.