WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
How to use more than once connections template on a page (4 posts)

  1. Jenny
    Member
    Posted 2 years ago #

    I am trying to use the tile template as well as the profile template on a single page. The page consists of a tabbed page section as well and although I specify a particular template per category using shortcode, only one template is applied to all categories listed on that page. How can I insert/use 2 different connection templates on different categories on a single page, using short code?

    This is the code I am currently using:
    [connections_list id='26,27,28,29,30,31,32' order_by='id|SPECIFIED' template='profile']
    [connections category_name='Intermediate Phase' template='tile']
    What is happening, with the above, is that the "Tile template" is applied to all categories, despite the short code being differen per individual categories.

    I urgently need to resolve this issue as the "main page" must show categories/connection lists with the "profile template" and the categories in the tabbed pages must be displayed with the "tile template"

    http://wordpress.org/extend/plugins/connections/

  2. Jenny
    Member
    Posted 2 years ago #

    I have also tried using the code in the following variations, to no avail, each time, the tile template gets applied to all categories and connection lists.

    [connections_list id='26,27,28,29,30,31,32' order_by='id|SPECIFIED' template_name='profile']
    [connections category_name='Intermediate Phase' template='tile']

  3. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    What you need to do is open the styles.css file for the Tile template and change the selectors so they only target the Tile template. Prefixing each style declaration with div.tile should be sufficient.

    Of note, the next version has been extensively re-worked to better accommodate using multiple templates on a single page.

  4. Jenny
    Member
    Posted 2 years ago #

    Hi Steven,

    Since I was working against a deadline and couldn't find the solution fast enough, I decided to use the tile template for all the sections on the page instead and the client is happy with it.

    But thank you for posting the solution, it is going to come in handy with future projects.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic