03/20/2017 at 9:19 am #416196
This is correct, if you put the shortcode on the page more than once, it will render the directory more than once (in some cases). The content you are seeing is the additional page content you added to the page, ie. the sub-headers. Connections at one time did “clear” the page when viewing a single entry, the problem was that visual page builder plugins became popular. In these cases the page can not be cleared because they use shortcodes “under the hood” to do the page layout. If you “clear” the page, you remove the page layout.
Now, that said, you can do what you wish, you need a slightly more complex setup. Here’s how…
- Create a new WordPress page, name it “Person”. Publish the page. Take note of the page ID that WordPress assigns the page. YOu will find this in the browser’s address bar right after you click the publish button.
- On this new “Person” page add the
[connections]shortcode only once with no options set.
- Navigate to the Connections : Settings admin page and click the General tab.
- Change the Directory home page to the new “Person” home page and save the settings.
- Navigate to the existing directory page and add the `home_id shortcode option to each of the shortcodes set with the page ID of the “Person” page and save the page.
- Now all the entry link on the existing page will resolve to the new “Person” page where the shortcode exists only once displaying only a single entry when a a link is clicked from the existing directory page.
Hope this helps!