Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Stacy
re: I tried show_title=’FALSE’ and show_org=’FALSE’ but neither changed the display.
These shortcode options only affect the “individual” entry type which have these fields set.
re: Can I hide organization H2 title?
Yes, by using CSS. Add the following to the theme’s CSS area.
#cn-circled .cn-entry-single h2 span.fn { display: none; }Hope this helps!
Steven Zahm
Keymaster@ Vijay
re: “allow_public_override=’true’” is set in the page
In nearly all cases I highly recommend not using the
allow_public_overrideshortcode option. It is virtually never needed.re: How can I make the “Department” field private
This fields can not be made private. The only thing that can be done is that the template can be be edited to the field is only rendered for logged in users.
Hope this helps!
Steven Zahm
Keymaster@ Shannon
re: Everything is going well until I try and upload an image or logo. I have formatted the images to the correct sizes and it still isn’t allowing me to use them. Suggestions?
Are you seeing any error message or anything? Please describe what happens when you try to add an image.
Steven Zahm
Keymaster@ Florian Misiak
Oh, alternatively, simple use
cn-cat-slugas your query var instead ofCONCAT.Steven Zahm
Keymaster@ Florian Misiak
This can not be with the shortcode. You will have to hook into the
cn_list_attsfilter. This filter provide an associative array. Set thecategory_slugkey to the value of yourCONCATquery variable and return the array.Hope this helps!
Steven Zahm
Keymaster@ Jennifer
The
child_ofoption will only work with a single category ID. You only option is to add the line twice, like this:Like this:
if ( 'individual' !== $entry->getEntryType() ) { $entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '', 'after' => '', 'child_of' => 24 ) ); } if ( 'individual' !== $entry->getEntryType() ) { $entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '', 'after' => '', 'child_of' => 21 ) ); }Hope this helps!
Steven Zahm
Keymaster@ Rene
This is correct, if you put the shortcode on the page more than once, it will render the directory more than once (in some cases). The content you are seeing is the additional page content you added to the page, ie. the sub-headers. Connections at one time did “clear” the page when viewing a single entry, the problem was that visual page builder plugins became popular. In these cases the page can not be cleared because they use shortcodes “under the hood” to do the page layout. If you “clear” the page, you remove the page layout.
Now, that said, you can do what you wish, you need a slightly more complex setup. Here’s how…
- Create a new WordPress page, name it “Person”. Publish the page. Take note of the page ID that WordPress assigns the page. YOu will find this in the browser’s address bar right after you click the publish button.
- On this new “Person” page add the
[connections]shortcode only once with no options set. - Navigate to the Connections : Settings admin page and click the General tab.
- Change the Directory home page to the new “Person” home page and save the settings.
- Navigate to the existing directory page and add the `home_id shortcode option to each of the shortcodes set with the page ID of the “Person” page and save the page.
- Now all the entry link on the existing page will resolve to the new “Person” page where the shortcode exists only once displaying only a single entry when a a link is clicked from the existing directory page.
Hope this helps!
Steven Zahm
Keymaster@ Alice
I think you need to check the memory allocated to PHP… according to the PHP error message only
0.262144MB is allocated to PHP. WordPress itself tries to default to 40MB (which is fine without plugins and why I recommend at least 128MB).Steven Zahm
Keymaster@ Michael
re: I went in and made a couple changes to the card-single file.
That’s another way of doing… you could have use the Template Customize to do the same for the single entry profile view too.
On the Connections : Settings admin page under the Display tab, there is a section for Content block to be displayed on the single entry view, just like the list view.
While in the Template Customizer you can click an entry name (any entry) and adjust the settings to hide the address and phone info just like you did for the results list view.
Hope this helps!
Steven Zahm
Keymaster@ Bogdan
re: I was wondering how can i add this shortcode [yasr_visitor_votes] into every connection ?It displays rating stars.
I created a custom field but if i put it there it wont even remain there after saving.I can not tell you why it is not saving. I’d have see your code. But I can tell you that, depending on your code, the shortcode would not work and would only show as text. Unless of course you took that into consideration when writing your code.
re: Also if i type it in Notes field or Biographical Info its the same ,it wont display anything on the site.Not even the shortcode itself.
I installed the Yasr plugin and it did render in the bio and notes field just fine on my test site. My guess there is another plugin causing a some type of conflict.
What I can tell you after some brief testing, this plugin will not work. Putting this in the bio or notes, a user is voting on the WordPress page, not the Connections entry. Since Connections Entries are always rendered on the same WordPress page the user rating will remain the same across all Connections entries since the rating is applied to the WordPress page.
-
AuthorPosts
