WIP: Author ID dynamic value not rendering in custom URL

Browser: Chrome
OS: macOS
URL: https://bcf.church/sermon/embracing-the-call/
I have a template for showing sermons and I am trying to use a custom URL for the author to open the archive and filter it to show sermons by the author.

I confirmed this part works by doing it manually but Bricks is not rendering the {author_id} correctly in the custom URL field.

This seems to only be an issue in the custom URL field. I added the {author_id} in a text element and it displayed correctly. You can see I added it after the author’s name. It’s the “4” you see after his name.

Here’s a screenshot showing what I have in the builder and what’s output on the front end.

Update

  • I am using a custom permalink structure /article/ instead of post name or post ID but I just tested it using the default post name structure and the dynamic data for the author in the URL still does not render correctly.

Hi Reuben,
Thanks so much for your report!

I reproduced the issue and added it to our bug tracker.
You can use the native WordPress function to get the author ID instead:

{echo:get_the_author_meta( 'ID' )}

Make sure to add get_the_author_meta to echo_function_names.

Best regards,
timmse

1 Like

Thank you for the clear instructions! I have it working with the native WP author ID.