How can i fetch post author

Using this:

Hey @erik_ragnar,

You should use the User Dynamic Content.

Hope that helps.

Hi @christian_y,

I don’t think that is working because i want to display the post author. Not the logged in user name.

Hello @erik_ragnar,

You should use this:

{{dc:user:meta user="author" key="nickname"}}

This will display the nickname of the author of the current page/post.

Hi @RueNel

Im sorry, but it does not work.

Hi @erik_ragnar,

I can see you have a lot of license. Please make sure first your site is updated. Clear cache after update. See our changelog here.

If the issue still persist, you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If those two steps did not fixed it, we might need to see your setup because that code suggested by Ruenel should do it. Please share site URL and credentials inside a secure note and also the page in question so we can investigate. Thank you.

Hi @Lely

I created a user for you. See previous post for secure note.

Let me know if you need more.

Hi Erik,

Is the issue still persisting? I’ve tested it on your site and it seems to work. I created this test page https://wordpress-192597-999876.cloudwaysapps.com/test-by-themeco/ that contains only a Text element and its value is {{dc:user:display_name user="author"}}.

In fact, I’ve created a short screencast for you to show you what’s happening. Here it is: http://somup.com/cq6ViVedXr.

Can you confirm whether it’s now sorted or if it still persists. Thank you.

Hi @benursal,

Thank you for your patience. To replicate this correctly. I am trying to fetch author in a “content area” block, in header “Single”, on a single post page: You can take a look in the header builder. And example post: https://wordpress-192597-999876.cloudwaysapps.com/sed-accumsan-egestas-nisi-sit-amet-tincidunt-suspendisse-potenti/

Just below the title.

Thanks!

Hi @erik_ragnar,

Thank you for the clarification. I can confirm that specific dynamic content is not working on the header builder even using other elements. Tested it using Text area, Raw content and Content area. I have submitted this to our issue tracker. We’re sorry for the inconvenience this has caused you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.