Forum Replies Created
-
AuthorPosts
-
08/30/2016 at 10:54 am in reply to: Shortcode to only show results from Organization Template #388237
Steven Zahm
Keymaster@ ssnoomann
re: In these special sections I only want to display those database entries that are classified as Organizations – and not display anything set as an Individual using the Names template.
If I understand correctly, you should be able to use the list_type shortcode option by adding the
list_type="organization"to the ***existing shortcode.re: I guess if I could find a list of all the available shortcodes I could probably figure it out myself, but I’ve only been able to find bits and pieces of the shortcode options throughout various posts and documentation.
The core shortcode options are found on this doc page. These will function regardless of template used.
The cMap template does support additional shortcode options but it is highly recommended to use the Template Customizer instead. Here’s is the link to the doc page which goes over the cMap template’s shortcode options.
re: order_by=”meta_key:order|NUMERIC_ASC,sort_column”
I see you are using a meta query to order your entries. Another option which I suggest over this method is the Custom Entry Order extension. The end result of both methods are the same but the Custom Entry Order extension does it a little more efficiently because an optimized db query can be used rather than a meta query.
Hope this answers your questions thoroughly!
Steven Zahm
Keymaster@ ssnoomann
re: As there is no Demo of this extension I am not sure what I should expect.
When the plugin is activated and the contact block for the contact form enabled you will see a contact form on the entry’s detail page as shown in these screenshots.
If you are not seeing this contact form there are two things to check:
- Ensure the Contact plugin is installed and activated on the WordPress Plugins admin page.
- Ensure that you have enabled the email entry content block on the Connections : Settings page under the display tab.
re: Here is the code snippet that I was referring to
You are referring to the code in this reply in the other thread, correct?
Looking at the code you pasted in this thread, I can see it was altered. Use the code as is, do not change it. The alterations that were done make it nonfunctional.
re: Looking at this code more closely it appears that it is referencing First Name. I do not use the name fields, only the Organization name.
If you are adding the entries as “Organizations”, the code is just fine, please leave it as is. The
getName()function is “smart” and will return the org name if the entry is an “Organization” regardless of the settings for the name format.Hope this answers your questions thoroughly!
Steven Zahm
Keymaster@ Thomas
Sorry, no, it is not. That feature is reserved to when a link is added, it can be assigned to logo or photo.
Steven Zahm
Keymaster@ Thomas
Can you please provide a link to your directory page so I can take a look?
Steven Zahm
Keymaster@ Vicen
Sorry to hear you are having trouble! I look at line 259 but there is nothing on it. Which file? Maybe I am not looking in the correct file. What is the eaxt error message from your PHP error log?
08/29/2016 at 5:23 pm in reply to: Hide Categories in the card in line with categories hidden in sidebar? #388122Steven Zahm
Keymaster@ Carolin
One separator is just as easily done as they other, same with the bold. I just emailed you a quote. I can lean on existing code so I can do this relatively quickly and therefore inexpensively.
Steven Zahm
Keymaster@ Thema
As mentioned in my previous reply, I guessed the core Connections Business Directory plugin was not installed. It was not. I took a moment to install it and then activate the cMap template.
Hope that helps!
Steven Zahm
Keymaster@ Allan
Yes, the link to your site is what I needed… something I would not be able to give you if I do not know it ;)
Add the following to the theme’s custom CSS area if it has one, refer to the theme’s docs to find out. If the theme does not have a custom CSS area, then you can use the JP Custom CSS plugin.
.cn-alphaindex { border-bottom: 1px solid #e5e5e5 !important; font-size: 1.5em !important; text-align: center !important; }Hope this helps!
Steven Zahm
Keymaster@ Brittany
Sure, you could hook into the
cn_search_termsfilter. Here’s an example:add_filter( 'cn_search_terms', 'cn_exact_search_only' ); function cn_exact_search_only( $terms ) { return $terms[0]; }The
$termsvariable is an array where index0will be the whole string.Hope that helps!
Steven Zahm
Keymaster@ Sami
The only way to accomplish this is to edit the PHP of the template. Edit the
card.phpfile found in this folder:../wp-content/plugins/connections-cmap/Add the following line of code where you want the bio to display.
<?php $entry->getBioBlock(); ?>Save the file to one of the folders outlined in the custom template override file tutorial.
Finally use the Template Customizer for cMap to turn off the bio display since there is no need to show it twice.
Hope that helps!
-
AuthorPosts
