Skip Navigation

[Resolved] Displaying Authors Logo on Custom post Sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that the customer wanted to display elements from elements from and author's profile on a project post that they create.

Solution:

Here the customer had created a separate CPT for his users so they can create a profile after creating a user.

That same user then creates a project and on that project page it should automatically display the user's logo from their profile.

You can use a view to do this to allow for it to filter for the same author profile as the custom post then you will need to add a post author filter to the view.

Then you can just add the elements from the profile that you want to display.

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by theW 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#622661
logo.png

Tell us what you are trying to do?

I would like to Display the Authors "Logo" on the Custom Single Post Sidebar
...
I created a "My Profile" Cred form, where Authors can fill in their info.
One custom field is their "Company Logo"

This same Authors can also create Custom Posts, with another Cred form.

Since there would be manny authors, I would like to have their logo appear accordingly in the sidebar when VIEWING each Single Custom Post

Is there any documentation that you are following?
none that I've found,

Is there a similar example that we can see?
no

What is the link to your site?
hidden link

#622729

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-03-06 at 3.04.26 PM.png

Hello,

Thank you for contacting our support forum.

You can use a view to do this and i'm assuming you have this view setup already but its listing out all the profiles.

To allow for it to filter for the same author profile as the custom post then you will need to add a post author filter to the view, see screenshot.

Please let me know if this helps.
Thanks,
Shane

#622749
LAYOUT.png

Thank you very much for you response Shane.

I have an "Layout" that structures how the Single Custom Post Should look..
I don't have a View assigned for a Single Custom Post neither a View for the Authors Profile, I'm using the Author Achieve as a View for each Authors Profile.

Would the same method apply?

#622960

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I would suggest creating a view that lists all the profile of the authors and then add the filter that I showed in my previous response.

From there you can then add this view to the Layout cell.

If you're having any issues please let me know and I will be more than happy to log in and assist.

Thanks,
Shane

#627152

Thank you so much again Shane.
Sorry for the late response...

I'm still a little confused...
(So I already have a View that perfectly displays the Single Custom Posts,
What I need to work on is a Second view to display the Authors "Company Logo"?)...

I successfully created a View called "Company Logo"
and added the Filter "Post author is the author of the page where this View is shown"

But I got stock after that.
Could you please let me know what is the next step?

#629441

Never mind, I figured it out..

I had to use the "Visual Editor" cell, inside my Single Custom Post "Layout" and add this code:

<p>[types usermeta='company-logo' alt='%%ALT%%' title='%%TITLE%%' size='full' align='center' user_is_author='true'][/types]</p>

THANKS!