RE: I am trying to change the order of the page elements and can’t seem to do that from the backend despite trying to move the fieldsets around.
When you mention “fieldsets”, I assume you are referring to the Fieldset Configuration tab on the Settings admin page, correct?
If that is the case, those settings will only affect the fieldset on the Connections Manage admin page when adding or editing a directory entry. The settings will also affect the frontend Form add-on.
The display order of the entry details is largely static and based on the single directory entry view of the template used to display the directory (Gridder in this case).
If you navigate to the Connections Settings admin page, click the Display tab, and scroll to the Single Entry Content Block section, you can change the blocks to display and in what order. At the time of this reply, that would be the Email Entry and the Interactive Map content blocks.
Is there something else you would like to change?
RE: My other question is how can I display an entries select categories on the profile page? For example I have a category of services how can I add a block to show the selected services i.e this company offers the following services [1,3,5]
Since the Gridder template design is largely focus to display profile details for individuals it does not display the attached categories.
That said, I do have a couple options that will enable this for you.
Here’s a code snippet that will enable the Category Content Block:
add_filter(
'Connections_Directory/Content_Block/Add',
static function( $block ) {
if ( 'entry-categories' === $block->getID() ) {
$block->setProperties(
array(
'context' => null,
'register_option' => true,
'render_heading' => false,
)
);
}
return $block;
}
);
To add this code snippet to your site, I recommend the Code Snippet plugin. Here’s the link:
Install the Code Snippets plugin and activate it. Add a new code snippet, copy-paste the above code into the new snippet, save, and activate it.
Alternatively, and perhaps the better solution for your site is the free developer add-on, Split Categories. Here’s the link:
To download the add-on, click the green Code button and choose the Download Zip option. Download the zip file to your desktop, but do not unzip it.
Navigate to the Add New Plugin admin page and click the Upload Plugin button. Choose the downloaded zip file. Activate the plugin.
Now, navigate to the Connections Settings admin page and click the Advanced tab. Here, you will find a box with the categories listed—Control+Click on the parent categories you want to split into their sections. For example, (and I’m guessing a bit) click on the parent category for the states and Control+Click on the services parent category. Save the change.
Navigate to the Display tab and scroll to the Single Entry Content Block section. You will see a new content block for each category parent you choose. You can enable them and change the order in which they are displayed.
I hope this helps; please let me know.