Looking for code snippet to add member’s recent posts to profile
I’m looking for a specific function that I have not been able to achieve so far.
I would like to show the recent posts on the member’s profile page authored by said member.
Now, I have successfully added the recent posts to the “home” page of the member page via widgets added in the WP customizer. The main issue I have is the styling, the featured image shows up huge, and the title get’s blended in with the content. It looks awful. There aren’t any styling/layout options on the widget as I’m guessing it’s intended for a sidebar.
Soooo, I would like to create a custom template page and I have been able to pull the correct template file into my child theme. What I’m missing is the code snippet to pull in the recent posts of the member being viewed. I’ve tried a couple of snippets from around the web, but I haven’t been able to get anything to work.
I even started to just style the “Latest Articles” section but the featured image is pulled inside the paragraph which won’t allow me to display none on the content. I’m looking to just get a simple five item list of the most recent articles with a 100×100 thumbnail.
I would prefer not to depend on another plugin if possible.
Would love to get some direction, maybe where I can find code examples I can use etc.
Thank you … Scott
- You must be logged in to reply to this topic.