Market is a highly customizable template that features a Google Map embed and expandable content trays for both the bio and notes feilds with a category sidebar. It’s a perfect template for listing businesses and organizations.
|
|
Greater Reading Chamber of Commerce & Industry
Other 201 Penn Street, Suite 501 Reading, PA 19601
Work Phone: 610.376.6766
Work Fax: 610.376.4135
Work Email: info@greaterreadingchamber.org
|
| Show Notes | Show Bio |
Visit Website
| Show Map |
|
See Market 1.0 in action at these fine websites:
- VentureMom
- BayGuide
- National Retail Vendors Association
- American Association of Franchisees & Dealers
See Market 1.0 in action at these fine websites:
- Pagination
- Category Sidebar
- Logo
- Google Map Embed
- Expandable Bio and Note trays
- Customizable Labels
- Connections >= 0.7.1.3
- Permalink structure other than Default.
- In order for the template to fit, the content width of your WordPress theme must be at least 630px
- Logo Image Settings
- Quality: 75%
- Width: 200px MAX
- Height: 100px
- Shrink
The features of this template can be customized by adding the following options to the Connections shortcode.
Here’s an example shortcode that can be used for that changes the number of entries displayed per page, sets the pagination to be displayed at the bottom of the list and hides both the anniversary and birthday fields. As you see in this example shortcode, you only need to add the options you wish to change from the default setting and you can mix and match the options to suit your needs.
[connections template='cmap' page_limit='32' pagination_position='after' show_birthday='FALSE' show_anniversary='FALSE']
Here’s the list of options the Market template adds to the shortcode with their default setting.
- enable_search=TRUE
- enable_pagination=TRUE
- page_limit=20
- pagination_position=’before’
- enable_category_select=TRUE
- show_empty_categories=TRUE
- show_category_count=FALSE
- enable_category_by_root_parent=FALSE
- enable_map=TRUE
- enable_bio=TRUE
- enable_bio_head=TRUE
- enable_note=TRUE
- enable_note_head=TRUE
- enable_website_link=TRUE
- show_addresses=TRUE
- show_phone_numbers=TRUE
- show_email=TRUE
- show_im=TRUE
- show_social_media=TRUE
- show_birthday=TRUE
- show_anniversary=TRUE
- address_types = ‘home, work, school, other’
- phone_types = ‘homephone, homefax, workphone, workfax, cellphone’
- email_types = ‘personal, work’
- image=’logo’
- image_width=NULL
- image_height=NULL
- image_fallback=’block’
- tray_image=’photo’
- tray_image_width=NULL
- tray_image_height=NULL
- tray_image_fallback=’none’
- map_zoom=13
- map_frame_height=400
- card_width=440
- category_width=175
- str_select=’Show All Categories’
- str_image=’No Logo Available’
- str_tray_image=’No Photo Available’
- str_map_show=’Show Map’
- str_map_hide=’Close Map’
- str_bio_head=’Biography’
- str_bio_show=’Show Bio’
- str_bio_hide=’Close Bio’
- str_note_head=’Notes’
- str_note_show=’Show Notes’
- str_note_hide=’Close Notes’
- str_contact=’Contact’
- str_home_addr=’Home’
- str_work_addr=’Work’
- str_school_addr=’School’
- str_other_addr=’Other’
- str_home_phone=’Home Phone’
- str_home_fax=’Home Fax’
- str_cell_phone=’Cell Phone’
- str_work_phone=’Work Phone’
- str_work_fax=’Work Fax’
- str_personal_email=’Personal Email’
- str_work_email=’Work Email’
- str_visit_website=’Visit Website’
- name_format=’%prefix% %first% %middle% %last% %suffix%’
- contact_name_format=’%label%: %first% %last%’
- addr_format=’%label% %line1% %line2% %line3% %city%, %state% %zipcode% %country%’
- When you receive the purchase confirmation email which contains the download link and code, download the template zip file. Please do not unzip this file.
- In the WordPress admin under the Connections menu, select Templates.
- Browse to where you downloaded the template zip file and select it.
- Click Install Now.
- After the template has been successfully installed, click Activate.
- When activated the template will now be used by default.
FAQs
How do I use the str_***** shortcode options?
Every string in a template can be customized to suit your specific needs. This can be done by setting template enabled shortcode options. These string shortcode options all begin with “str_”. Every template differs on what strings are available to be customized, please refer to the template’s documentation [currently under construction] to learn more. But here’s a couple examples that will work across most templates.
/* * Example 1 * Change the 'Home Phone' label to 'Phone' */ [connections str_home_phone='Phone'] /* * Example 2 * Change the 'Personal Email' label to 'Email' */ [connections str_personal_email='Email'] /* * Example 3 * You can add as many string customization shortcode options as needed. * * Change the 'Personal Email' label to 'Email' * AND * Change the 'Home Phone' label to 'Phone' */ [connections str_personal_email='Email' str_home_phone='Phone']
How do I use the addr_format shortcode option?
It’s a little difficult to explain how the addr_format option works so I will provide some examples.
But first… some background.
The addr_format option accepts only a few specific tokens.
Tokens are the % symbols and the word between, for example, %label% is a token.
The valid tokens for the addr_format option are:
%label% [NOTE: unless this is overridden, the label will be the address type.]
%line1%
%line2%
%line3%
%city%
%state%
%zipcode%
%country%
When processing the display of the address, Connections will scan for each token and replace it with the corresponding address segment. Each token should only be used once even though you could use each token more than once, but that is not recommended.
Here’s the default layout of the tokens that create the format of the address:
%label% %line1% %line2% %line3% %city%, %state% %zipcode% %country%
Now, your first question might be, but the address items are stacked in the traditional block layout, not on a single line, how is that being done? Right, the block layout is achieved using CSS which can easily be overridden to make the address segments display inline. How to override the CSS is a separate topic.
On to the examples.
This will display the address minus the label and country fields.
[connections addr_format'%line1% %line2% %line3% %city%, %state% %zipcode%']
This will display the address with the state and city switched, which is common in eastern Europe.
[connections addr_format'%label% %line1% %line2% %line3% %state%, %city% %zipcode% %country%']
How do I change the width of Market?
By default the Market entry card is 440px wide and the category sidebar is 175px. To change the overall width you need to change two Market enabled shortcode options. Here is an example:
[connections category_width=160 card_width=500]
You do not have to change both options, you can change only one or the other.
Here’s and example that makes the category sidebar wider:
[connections category_width=200]
And here is an example to make just the entry card wider:
[connections card_width=500]
How do I change the number of entries per page?
By default the template will show 20 entries per page. You can change the number of entries per page by setting a template enabled shortcode option, page_limit. Here is an example:
[connections page_limit=10]
Events Made Easy
http://wordpress.org/extend/plugins/events-made-easy/
If the template you are using has an embedded Google map and only an empty box is showing, the cause might be a conflict with Events Made Easy.
This plugin still uses the Google Maps API 2 which is loaded in the head of every page instead of just the pages it is needed on.
Connections uses Google Maps API 3 which is only loaded on the page foot where it is being used.
When the request for the map is sent to Google, it is using the Google Maps API 2 because it was loaded first in the page head by Events Made Easy. The map request from Connections is sent in the Google Maps API3 format which causes a JavaScript error and the map fails to load.
Unfortunately there is no fix for this conflict. The developer for Events Made Easy would need to alter it so it only loads its JavaScripts on the pages where the plugin needs them.
NOTE: This FAQ was written based on Events Made Easy 1.0.1
I’ve installed the template but it doesn’t show up as available to activate.
Unfortunately a very small percentage of users experience this issue, which is odd, because the same method to upload and verify the template is the same one that is used by WordPress to install themes.
The solution is to unzip the template that was downloaded. Once unzipped, you will have a folder with the template name which contains the template files. Copy this folder and it contents to this folder on the server ../wp-content/connections_templates/
The result should be this path:
../wp-content/connections_templates/template_name
template_name should be the actual name of the template you are installing. Once this is done, the template will be available for activation.
How can I hide empty categories?
You can hide empty categories by setting a template enable shortcode option, show_empty_categories. Here’s an example:
[connections show_empty_categories='false']
Why does the template layout look wrong?
When copy and pasting the shortcode into a page or post while using the rich text editor (the Visual tab) HTML tags will also be pasted when copying from a webpage. The solution is to paste the shortcode into the HTML editor (the HTML tab). To fix this error, go to the page or post where you pasted the shortcode and switch to the HTML editor and remove any tags that surround the shortcode, for example <pre></pre> and <code></code>.
Also, many commercial themes support a shortcode named [raw]. If yours does, wrap the Connections shortcode in it like so: [raw][connections][/raw]. Why? The theme is removing and then re-applying the wpautop filter which is interfering with the code for Connections and will interfere with other shortcode based plugins as well, but may not be as noticable. If the [raw] does not work, you’ll have to send me a copy of the theme so I can see how they implemented that ‘feature’. Sometimes theme authors simply rename the [raw] shortcode.
Where is the CSS file?
The CSS file is named styles.css and can be found in the wp-content/connections_templates/template-name folder. The template-name would be the actual name of the template, for example, cmap or market.



