Forum Replies Created
Awesome, glad to hear it. I’ll implement it!04/16/2019 at 4:39 pm in reply to: Filter by custom field and remove "custom field" label #489997
Re:Just so I am on the same page… you are referring my reply from here, yes?
Yep, that is the comment I was referring to — so, just to clarify, you are not able to help me add the additional drop down? Would it be easier to add an additional drop down for a non-custom field?
Re:In this folder you have two files
Yes — that folder contains 2 files, the ones you mentioned, and those are the ones I have edited. BUT, this issue seems to partially be user error – I realized I was editing the files for my live site rather than my staging site and tried again. This time, the card.php file is showing up fine. I would still like to figure out how to refer to the element both in CSS and in the shortcode, so that I can make it bold and add a string to get the label text to show up — something like “str_select” but for the custom field.
Re: let’s focus on the card-single.php
This one is still giving me issues. I tried pasting the entire text on both line 72 and line 75, and I am receiving a syntax error that says there is an unexpected “<” — this is really weird, since the only < on that line is the one for “<?php” I definitely have populated both the bio field and custom field for all entries. Not sure what’s going on here…
Ellen04/16/2019 at 1:51 pm in reply to: Filter by custom field and remove "custom field" label #489972
Re: Adding such a feature [additional drop downs] would require custom development.
I think I must have misunderstood – when you first responded to this question, you said it would require custom development and additional plugins. I took this to mean that if I downloaded the plugins specified and added the additional field using the method you suggested, I could add the additional drop down. I have followed your instructions closely, with the hope that once I added that field properly, you would be able to explain how to add the drop down.
Re: Make sure the edit the correct template file.
As per instructions on this page I was not editing the plugin’s template file, but rather editing a copy of that file, which is located in the new folder I created, located at “wp-content/connections-templates/gridder/” – is this the correct location? I moved the text to the appropriate lines in the card-single.php file and the card.php file. I have been using <?php and ?> tags — you mentioned using “<php” without the question mark, so that could be an issue. I wasn’t able to find the appropriate CSS elements to change using the inspector, because the field isn’t currently displaying, so that could be the issue? I am using the same ID for the field in both the php files and the Code Snippet, but maybe I am confused about what the instructions mean by “Field id”? I’ve attached photos of the Code Snippet I added and the code I added in the php. Hopefully this illumintes something.
Again, thank you so much for your help in getting this off the ground.
Ellen04/15/2019 at 4:26 pm in reply to: Filter by custom field and remove "custom field" label #489826
Correction — looks like I actually can’t search by this new field yet.04/15/2019 at 3:22 pm in reply to: Filter by custom field and remove "custom field" label #489810
Thanks so much for your detailed response. I have followed your instructions and existing documentation exactly, and was able to successfully add a “Location” field that I can edit on the backend for each entry. I can also return search results based on “Location” now.
Two issues remain:
- I need to be able to add another drop down filter for “Location,” next to the category one that is available by default.
- The “Location” field is not visible on an entry’s preview panel or in an entry’s profile view page. I’m not sure if this is related to me putting the code in the wrong spot in the card.php and card-single.php files — the documentation just says to “add the following code to where you want the custom field data to display.” Ideally, the custom field data would display before the biography text starts on the preview panel, and at the end of the biography text on the profile page. I placed the code at the end of the file, just before the last “</div> tag. Any guidance you could give on proper placement would be much appreciated.
Also, I think it will be a definite improvement to hide the “Custom Fields” metabox by default – it was definitely confusing to see that box and read instructions about custom fields, when that isn’t the best way to go about adding a custom field!
In response to your note on another thread, I will definitely leave a positive review once my page is up and running. You’ve been really helpful.
Just confirming that I should be adding this filter using the Code Snippets plugin? I can’t add custom CSS to the theme or adjust the shortcode to make this happen?
Additionally, what is the difference between this and the image settings within the plugin? It seems like these are the same options as exist in the image settings, and those have very little effect.
Thanks for your patience and helping me get this page off the ground.
Jumping on this thread because they are asking a question that I would also like resolved — I would like the overlay font to be displayed as the font active in our theme (Frutiger) rather than Arial. I also would like the overlay of the staff member’s name to be lowercase, rather than all capitalized. It would also be very useful to adjust the font size.
The page is not currently live on my website because it’s not looking great yet (although it’s getting there!), so I can’t give you a link to it, unfortunately.04/10/2019 at 6:48 pm in reply to: Filter by custom field and remove "custom field" label #489509
No worries, I understand that sometimes additional plugins are required, I just misunderstood what it meant for Connections to support custom fields, and thought that it was something I could do using shortcodes or something, without an additional plugin!
Why do you recommend adding a custom text field using Code Snippets and adding a template override, rather than using Advanced Custom Fields? Also, the article you shared states that the template override file will not be re-written in a wordpress update, but are there any cases I should watch out for where it would be re-written?
First of all, your support is top notch, and I really appreciate it.
We are getting closer! I have adjusted for the overlay, and that has worked to an extent. See the below two images (185x400px for test 2, 184x350px for test 3). This has solved the proportion issue as the images are now the correct proportion, but they are still being cropped/zoomed in, regardless of whether I select “no cropping” or not. I would like the staff’s heads to have a little more breathing room, and for people to not have their hair or neckline cut off.
Let me know if you have suggestions on how to accomplish this!
Thanks for getting back to me! I already have the grid size set as the same ratio, and have changed the image settings so that they should not crop — unfortunately, it still ends up cropping, dramatically changing the image proportions. Is this due to the text overlay? I attached an image so you can see that the images end up looking really ridiculous. How do I avoid this — I need to be able to see all of (or at least MORE of) the person’s headshot.
Will update you on the image quality issue once I go through our plugin installation process.