Introduction
Display a list of the files a WordPress User has uploaded using the Frontend File Manager plugin in the linked Connections Entry.
Prerequisites
This requires the installation and configuration of the Link extension. Here are the links to learn more about the Link extension and its installation instructions:
- https://connections-pro.com/add-on/link/
- https://connections-pro.com/documentation/link/#Installation
The WP Frontend File Manager is required to be installed and configured.
Installation
Connections Business Directory extensions are WordPress plugins and their installation is the same process. To install the extension, first download the zip file from your Purchase History page under the Downloads tab or from the download link provided in the sales confirmation receipt email and then follow these steps:
- In the WordPress admin under the Plugins menu, select Add New.

- Click the Upload link and the top of the page.

- Browse to where you downloaded the extension zip file and select it.

- Click Install Now.
- Upon successful installation click Activate Plugin.
Configuration

To enable the display of the WordPress Users uploaded files in their linked Entry for these steps.
- Navigate to the Connections Settings admin settings page.
- Click the Display tag.
- Scroll down to the Result List Content Blocks section and enable the Files option.
- This will display the upload files list in the list view of the directory.
- Scroll down to the Single Entry Content Blocks section and enable the Files option.
- This will display the uploaded files in the single entry detail/profile view (if the current template supports this view).
Hooks
To add actions and filters use the Code Snippets plugin (recommended method) or to the theme’s functions.php
file.
Actions
add_action( 'Connections_Directory/Frontend_File_Manager/Files/Before', /** * @param WP_Query $query * @param WP_User $user * @param cnOutput $entry */ function( $query, $user, $entry ) { echo '<p>Display before the file list.</p>'; }, 10, 3 );
add_action( 'Connections_Directory/Frontend_File_Manager/Files/After', /** * @param WP_Query $query * @param WP_User $user * @param cnOutput $entry */ function( $query, $user, $entry ) { echo '<p>Display after the file list.</p>'; }, 10, 3 );
Filters
To require login to be able to view the Entries uploaded files.
add_filter( 'Connections_Directory/Frontend_File_Manager/Require_Login', '__return_true' );
By default all WordPress User Roles can view the uploaded files content block.
add_filter( 'Connections_Directory/Frontend_File_Manager/Roles', /* * @param array $roles */ function( $roles ) { // Limit to only the Administrator and Editor roles. $roles = array( 'administrator','editor' ); return $roles; } );
By default all WordPress Users which have the read
capability can view the uploaded files content block. In a default WordPress installation all logged in users has the read
capability.
add_filter( 'Connections_Directory/Frontend_File_Manager/Capability', /* * @param string $capability */ function( $capability ) { // Limit to the roles with the `upload_files` capability. // In a default WordPress installation the Administrator, Editor and Author roles has the `upload_files` capability. $capability = 'upload_files'; return $capability; } );