-
AuthorPosts
-
February 18, 2020 at 2:38 am #1185486
Hello. I am using the Portfolio Grid to display a portfolio of real estate properties for a client. He will be creating new property listings himself, so I set up a number of custom fields using Advanced Custom Fields in order to simplify the process for him. He also doesn’t know much about WordPress or HTML, so I am trying to streamline what he has to do to create new portfolio entries / property listings.
The Advanced Custom Field shortcodes have worked well within the single portfolio entry, and most of the page content for new entries is easily entered by filling out a series of form fields.
But the client has asked for something that I’m having trouble doing – which is to display the property title information and property address that appears beneath the thumbnail image with a line break.
He wants:
Property Name
Property Address, City, State, ZipEach new portfolio / property entry currently uses the address as the title, and I will be modifying the titles to now include the property name, but I can’t create a line break in the title field after the Property Name so it displays above the address on the portfolio grid items.
Right now, I am using the excerpt field to display the price of the property (entered manually via text), but I figured I would try to use the excerpt field to display everything instead. I was going to add the Advanced Custom Field shortcodes for property name, address, and price to the excerpt field so I can achieve what he wants, style it, and keep his involvement in entering info to a minimum because all the info is being dynamically populated by the info he entered once in the ACF form fields.
I haven’t been able to implement it, though. I can’t get the shortcodes to work in the excerpt field.
I have read forum posts that instructed me to add the “do shortcode” filter to the child theme functions.php. I have also altered a line of code in the enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php, per another forum post suggestion.
After trying both of these, I haven’t had any luck.
Sorry for the long description, but I’m open to any suggestions you might have for how I can achieve this. Whether that involves using shortcodes in the excerpt field or not. Thank you!
- This topic was modified 4 years, 9 months ago by promosapien.
February 18, 2020 at 3:04 pm #1185680Hey promosapien,
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 18, 2020 at 9:05 pm #1185831Hello Victoria,
Thank you for pointing me to that thread. I tried each method mentioned in it, and have had no luck.
I tried creating a modified portfolio.php in the child theme folder and modifying the functions.php in the child theme folder, as suggested by Andreas (who said he had success with this method). It did not work for me.
When I couldn’t get that to work, I removed the code from the functions.php in the child theme folder that pointed to the copy of the portfolio.php in the child theme folder. I also deleted the portfolio.php and its directory from within the child theme folder.
I left the standard “do shortcode in excerpt” code in the functions file, then followed Ismael’s instructions for editing the portfolio.php in the Enfold/config-templatebuilder/avia-shortcodes/portfolio directory.
This didn’t work for me either. I am not sure what else I can try to achieve this.
Like I mentioned earlier, the portfolio contains real estate property listings. The client’s request is to display the text beneath the portfolio thumbnail image in three lines, with the property name field being on top, property address on the 2nd line, and the price on the third.
Example:
PROPERTY NAME
Property Address
PriceIf I had the option (which I don’t) I would just use the title field on each portfolio entry for only the property name. I can’t do that, though, because the full address needs to be used in the title of the property.
Is there anything else you can suggest?
Thank you.
- This reply was modified 4 years, 9 months ago by promosapien.
February 20, 2020 at 1:38 am #1186202You can close this thread. I came up with a solution. Thanks.
February 20, 2020 at 4:59 pm #1186411Hi promosapien,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.