Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Melanie
You can contact Craig from this support thread:
https://connections-pro.com/support/topic/links-cache-home-page-radius/
He’s worked out a method to use Connections data in a third party mapping plugin.
Steven Zahm
Keymaster@ Craig
RE: [connections category="sample"]
The
categoryshortcode take a category ID, a number, not the name. That would explain why it does not work for you.Hope that helps!
Steven Zahm
Keymaster@ Lucy
RE: Does Connections have any type of reporting capabilities, like what categories were searched most with and without matches within a given time frame??
Sorry, no, but you could probably use Google Analytics.
RE: is there any way to pull in a mapping feature by category, or can you only get to the google map, once you’ve selected the entry?
Sorry, no, Connections does not yet have a cluster map feature.
02/11/2019 at 10:00 am in reply to: Pro Pack – Single Site license the license activation limit has been reached #484353Steven Zahm
Keymaster@ Rico
What is the old and new domains?
Steven Zahm
KeymasterYes, I would update WP first and then Connections.
Steven Zahm
Keymaster@ Stephen
RE: I want the dropdown menu to show categories from the root category “35”
Try:
[connections show_org='FALSE' show_image='TRUE' category=35 enable_category_by_root_parent='TRUE' show_addresses='TRUE' show_phone_numbers='TRUE' show_email='TRUE' str_select="Select Region" str_select_all="Show All Regions" show_empty_categories='FALSE' str_contact="Contact" str_home_phone="tel" str_cell_phone="mobile" str_work_phone="tel" str_personal_email="@" str_work_email="@" contact_name_format="%first% %last%" addr_format="%line1% %line2% %line3% %city%, %zipcode% %country%" background_gradient='FALSE' background_color="#fefefe" str_note_head="About my practice"]Or, with your existing shortcode you could try adding
exclude_category=XwhereXis the category ID of the category you want to exclude. I’m not exactly sure if that will give the results you are looking for.Steven Zahm
Keymaster@ Melanie
RE: Is there a map feature within the theme that shows all locations?
Sorry, no, this is not yet a feature in Connections.
Steven Zahm
Keymaster@ Roland
RE: template cmap.
We would like to have a width with 25% and 4 rows.Sorry, but cMap is not design with being used in a columnar format and is not supported. The sliding content trays for the bio and map fields do not work well in a columnar layout. The expanding size of the entry cards will cause the page to jostle around to fit the new heights. If you would like to give a try anyway, here’s a bit of custom CSS to get your started:
#cn-cmap .cn-list-row, #cn-cmap .cn-list-row-alternate { display: inline-block; margin: 0 10px 20px 0; max-width: 24% }RE: we need 3 custom fields with the option to select some features.
For example: Color is the field and we can select 4 different colors…
How we can realize this?Custom fields are possible to add, but is developer level feature. Here’s a few links you can refer to to add custom fields:
Hope this helps!
Steven Zahm
Keymaster@ Craig
RE: I wanted to change the word “Radius” to “Max distance” and tried Say What and other methods to no avail.
Yeah, this addon, since it is still beta, is still not 100% translation ready. Editing the code was the only way to make the change.
RE: You have a way to change the zip placeholder, but not that label. Do I have another option?
Hmmm… not sure I follow. There are no labels. Can you attach a screenshot showing what you mean?
RE: Do I have another option? Can you promise to never update your code? (kidding!).
lol, Actually I plan on changing it, a lot, this year. I want to convert this to a new WordPress 5 Editor block. This way I can make setup point and click. :)
RE: Is there a cache plugin you recommend or know is compatible? Or any to avoid?
I personally use and like WP Rocket. For me, it just works. I use to use W3TC. It is a very powerful caching solution, but, I found myself constantly fiddling with its settings after every, single, update to get things working again. When I say updates… not specifically Connections, but WP,the them, any other plugin. In providing support, I come across many users using Super Cache. Another good plugin, but it always seemed to be a little quirky.
Just my experience, so, your result may vary :)
RE: When someone comes to the site I have the multi-category-search showing and [connections]. I would like there to be only one organization showing (I have a category of “Sample” with one entry) sort of as a default. I can put a screen shot of it under your shortcode as a workaround but that’s not ideal. Suggestion?
You could try using this shortcode:
[connections category=X]Where
Xis the category ID of “Sample”For your use, that may or may not work all that well. You might get better results by adding this Code Snippet. I’ve never tested it against the advanced search though.
function cn_reset_category_search_filter( $posts, $WP_Query ) { global $wp_query; $shortcode = 'connections'; $pattern = get_shortcode_regex(); // Grab the array containing all query vars registered by Connections. $registeredQueryVars = cnRewrite::queryVars( array() ); foreach ( $posts as $post ) { // If we're in the main query, proceed! if ( isset( $WP_Query->queried_object_id ) && $WP_Query->queried_object_id == $post->ID ) { /* * $matches[0] == An array of all shortcode that were found with its options. * $matches[1] == Unknown. * $matches[2] == An array of all shortcode tags that were found. * $matches[3] == An array of the shortcode options that were found. * $matches[4] == Unknown. * $matches[5] == Unknown. * $matches[6] == Unknown. */ if ( preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches ) && array_key_exists( 2, $matches ) && in_array( $shortcode, $matches[2] ) ) { // Parse the shortcode atts. $atts = shortcode_parse_atts( $matches[3][ array_search( $shortcode, $matches[2] ) ] ); // Remove the cn-image query vars. $wp_query->query_vars = array_diff_key( (array) $wp_query->query_vars, array_flip( array( 'src', 'w', 'h', 'q', 'a', 'zc', 'f', 's', 'o', 'cc', 'ct' ) ) ); // If the `category` shortcode option is set and the user is not performing a search of any type, limit the results the categories defined by the shorcode option. // If a Connections query var is set, show all results according to the query. if ( isset( $atts['category'] ) && (bool) array_intersect( $registeredQueryVars, array_keys( (array) $wp_query->query_vars ) ) ) { unset( $atts['category'] ); // Rewrite the $atts array to prep it to be imploded. array_walk( $atts, create_function( '&$i,$k','$i="$k=\"$i\"";' ) ); $replace = '[' . $shortcode . ' ' . implode( ' ', $atts ) . ']'; } else { // Rewrite the $atts array to prep it to be imploded. array_walk( $atts, create_function( '&$i,$k','$i="$k=\"$i\"";' ) ); $replace = '[' . $shortcode . ' ' . implode( ' ', $atts ) . ']'; } // Replace the shortcode in the post with something a new one based on you changes to $atts. $post->post_content = str_replace( $matches[0][ array_search( $shortcode, $matches[2] ) ], $replace, $post->post_content ); } } } return $posts; } add_filter( 'the_posts', 'cn_reset_category_search_filter', 1000, 2 );RE: Some of my entries have the same contact email and that is appropriate in my usage. Am I doomed with regards to the Link plugin?
I guess that depends… it it was hoped that contact could edit all entries with their email address … sorry, but that will not work because it is a one-to-one relationship, not one-to-many.
If you allow the contact to register and rely on the autolink feature, based on email. It will seem random as to which entry the user will get linked to.
I think I would suggest only adding the entries that you want to linked to users first. Ensure they get their proper links and then import any of the schools where the contact email is displicate
Hope that makes sense!
RE: And connections-initial-search-results is not working for me. It is installed and the box is checked to suppress results.
Try testing without the caching enabled on your site. Before sure to flush it first. Some caching plugin will still serve old cached pages even when deactivated (cough, cough WP Super Cache). If that work, just exclude the directory page.
I know this is long… but I hope it helps!
Steven Zahm
Keymaster@ Mark
RE: Im not super experienced in shortcode. Woould you know where it is best top add enable_category_multi_select=true
Are you using the shortcode to embed the directory or the new WordPress 5 Editor block?
RE: Do send on the multiple category add on too, many thanks
Ok, will do. If you do not receive the email, please let me know. And, as mentioned, this does have a complex shortcode for configuration. So, if you are not super experienced, it might be a little difficult to understand.
-
AuthorPosts
