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

In this article, the process for adding end or expiration dates to multi-photo post types is explained. This applies to Photo Albums, Products, Classifieds, and Properties.


Option 1. Hidden field method controlled by the admin.


With this method, an admin can add a Hidden Field to the multi-photo post’s custom form and define the number of days until the post expires. Once the specified 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. Allowing members to set the expiration date themselves.


With this method, an admin can add a Custom HTML Field to the multi-photo post’s custom form. Members can then select and manage the desired expiration date for their post.


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


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.