• Resolved 1ramyt

    (@1ramyt)


    Hi, I’m hoping someone might be able to give me some direction on how to do the following on my Salient built page. On the page that I’ve linked, I’m using the post/portfolio filtering option that Salient offers. It works great, but I want to be able to add a custom field underneath each name/title. Currently that field that you see is the name of the person in the portfolio, which is the title of the portfolio page. What I’d like to do is the following:

    • Under the name (title), I want to me able to add in a custom text field, which is pulled from each person’s portfolio. So in this case in particular, I want their job title to be populated under each person’s name in the filtering page.
    • How can I do this without rebuilding each profile from scratch?
    • Is using ACF (I have not used this before, so I’m unfamiliar with its capabilities) the right approach, and if so, could you give me some guidance on what I need to do. Don’t worry, I’ll research tutorials, too, but I need some general guidance on if I’m going in the right direction
    • If I use ACF, will I also need to use a custom filtering plugin to show the correct portfolio categories as well as the job title below each profile on a newly created filtering page, or is there a way to use the built in Salient post/portfolio filtering component to accomplish this?

    TIA for your help!

    • This topic was modified 2 months, 4 weeks ago by 1ramyt.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    a custom text field, which is pulled from each person’s portfolio

    So these people are WP users and this field is saved as part of their user profile? Or are they not WP users and exist only as arbitrary page content containing their profile? Pages can have custom fields added without resorting to ACF. There is a built-in meta box for custom fields. Not so for user profiles, you’d need some custom code or a plugin such as ACF for user custom fields.

    So adding custom fields in the back end is fairly straight forward, especially with ACF. Getting such fields to appear on the front end where you want is dependent on your theme. If your theme is a classic theme, its template could be modified to use functions like get_post_meta() or ACF’s get_field(). Similarly, there’s a get_user_meta() function if appropriate. Exactly how these would be incorporated into your theme depends entirely on what theme you use. Since you are using Salient, a commercial theme, there’s little we can offer for advice here. I suggest asking for specific guidance through your theme’s dedicated support channel.

    Thread Starter 1ramyt

    (@1ramyt)

    @bcworkz Thanks so much for the response. So yeah, they are just arbitrary profiles set up, not users of the site. After I posted this, I watched some vids on ACF and was able to add in a field for job titles (in this case), and you’re right, that was fairly straight forward.

    I think I now need to figure out how to pull that info and display it using Salient’s post loop builder. I’ll reach out to their team again. I’m guessing I’ll need to add in some custom code? My php knowledge is non-existent, so I’ll need to learn it.

    The goal here is to have a filtering option for the different job categories (management, directors, etc), but also show specific meta fields. Are there any specific filtering plugins that you would recommend to accomplish this? I’m aware of Search & Filter, which I’ll dive into, but open to other recommendations.

    Cheers!

    Moderator bcworkz

    (@bcworkz)

    Sorry, I’ve no specific recommendations for filtering plugins. All I can suggest is doing a search and trying out a few that sound promising.

    My php knowledge is non-existent, so I’ll need to learn it.

    I applaud your willingness to learn, even though it seems like you’re sort of forced into it. Don’t be too concerned, you only really need to learn enough to accomplish the task at hand. There are examples you can use to help you on your way.

    One challenge will be determining where to place your field code in your theme’s templates. Fortunately PHP is easier to read than it is to write. Still, finding the right place can be a challenge. Hopefully your theme’s support staff will be able to help you with that.

    Thread Starter 1ramyt

    (@1ramyt)

    @bcworkz No worries. I’ve since done some research on it, and found a few I’m going to test out. Oddly enough, I also found that the Salient dev team added a custom fields category in the post loop builder in their new beta version – I’m guessing that may have had something to do with my recent inquiries on the topic. It’s not perfect, but it does do the job (however inelegantly).

    I’m always willing to learn. And being forced to do it is sometimes the best time (otherwise, I find myself being distracted by other things to focus my time on).

    Thank you for your offer to help and your guidance as well. I truly do appreciate it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.