Title: Different layout
Last modified: August 22, 2016

---

# Different layout

 *  Resolved [makoun](https://wordpress.org/support/users/makoun/)
 * (@makoun)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/different-layout-2/)
 * I like this pluging but one question. Can I make somehow my own template? I don’t
   really like the way it outputs stuff in tables etc. I would like to make my own
   template for this. I know I can do custom template for this and use normal WP
   query stuff to get data but is this the way to go? Thanks!
 * [https://wordpress.org/plugins/pta-member-directory/](https://wordpress.org/plugins/pta-member-directory/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [DBAR Productions](https://wordpress.org/support/users/dbar-productions/)
 * (@dbar-productions)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/different-layout-2/#post-5496268)
 * Yes, that is exactly the way to go. At some point, I plan on making an extension
   to let you create your own custom directory displays, but it’s not that difficult
   to create your own templates if you are familiar with the process and a bit of
   PHP.
 * The plugin uses a custom post type of “member”.
 * This page in the index tells you how WordPress find the right templates:
    [http://codex.wordpress.org/Post_Type_Templates](http://codex.wordpress.org/Post_Type_Templates)
 * My plugin doesn’t use a template, so you can create your own templates and put
   them in your theme folder, and they will work. You would use:
    single-member.
   php for an individual member template archive-member.php for whatever type of
   format you want for your directory
 * If you look in the pta-display-directory.php file of my plugin, at the foreach
   loop I created starting at line 119, you can see the query arguments I use. A
   little bit further down you’ll see the member loop, and within that you can find
   the meta keys used for the custom post meta, which are _pta_member_directory_email
   and _pta_member_directory_phone.
 * Positions and Locations are terms, where “position” is actually the “member_category”
   term, and location is “member_location”.
 * Names are just the post title, although my plugin tries to figure out the member’s
   last name from the post title and stores that in another hidden meta field, _pta_member_directory_lastname,
   which is what I use in my query to sort by last name.
 * The member bio is just the regular post content, and member photos are just the
   post’s featured image.
 * To make a contact form link, you create a link to the page you put your contact
   form shortcode (which can be retrieved from the member directory options array)
   and then create and “id” argument and use the post ID for an individual, or the
   position slug if you want to send a message to the group of members that hold
   that position. Starting at line 150 is where I create the contact links for positions,
   and a bit further down starting at line 191 is where I create a contact link 
   for an individual member.
 * That should be all the info you need to create your own templates.
 * If you come up with a nice one, feel free to send it to me, and I’ll share it
   with the community.
 *  Thread Starter [makoun](https://wordpress.org/support/users/makoun/)
 * (@makoun)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/different-layout-2/#post-5496350)
 * Great, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Different layout’ is closed to new replies.

 * ![](https://ps.w.org/pta-member-directory/assets/icon-128x128.jpg?rev=980637)
 * [Member Directory and Contact Form](https://wordpress.org/plugins/pta-member-directory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pta-member-directory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pta-member-directory/)
 * [Active Topics](https://wordpress.org/support/plugin/pta-member-directory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pta-member-directory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pta-member-directory/reviews/)

## Tags

 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 2 replies
 * 2 participants
 * Last reply from: [makoun](https://wordpress.org/support/users/makoun/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/different-layout-2/#post-5496350)
 * Status: resolved