Thanks for the code. I have not had time to work on the custom field display yet. I love being able to sort entries into groups using both category_in and category_exclude!
Right now I am dealing with some sort of error. The customized template is working on the site, but if I run a search on the site which returns a page containing directory listings the page excerpt says “ERROR: Template not found….”, although the page is working. If the page has multiple calls by category the error message is duplicated for each category.
The website error logs include:
`[15-Sep-2014 19:07:17 UTC] WordPress database error Unknown column ‘number’ in ‘where clause’ for query SELECT snc_6EXBM7SN_connections.id
FROM snc_6EXBM7SN_connections
WHERE (number LIKE ‘orr%’ ) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/roots/page.php’), get_template_part, locate_template, load_template, require(‘/themes/roots/loop-page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, cnShortcode::view, cnShortcode_Connections::shortcode, cnRetrieve->entries, cnRetrieve->search
[15-Sep-2014 19:07:17 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 3 for query SELECT snc_6EXBM7SN_connections_address.entry_id
FROM snc_6EXBM7SN_connections_address
WHERE () made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/roots/page.php’), get_template_part, locate_template, load_template, require(‘/themes/roots/loop-page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, cnShortcode::view, cnShortcode_Connections::shortcode, cnRetrieve->entries, cnRetrieve->search’, and the second error on address is duplicated on ‘phone.entry_id’, otherwise identical.
Sorry to send all that stuff, I don’t know what you do or don’t need. The “line 3” reference does not seem to refer to either the template cmap.php or card.php pages. In cmap.php line 3 is in the header comments. In card.php it’s <div class="cn-left">.
The template is located in the plugin folder.
Links:
The directory: http://www.sierranevada.edu/contacts/
A page with several calls by category: http://www.sierranevada.edu/academics/teacher-education/faculty-staff/
A page showing a different display format from the same template, in case you’re interested: http://www.sierranevada.edu/academics/fine-arts/faculty/
A search for “Bouchard” will show you the error messages.
Thanks for your help!
