WAIT: Author Page Issues

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tools: birdeatsbug.com or jam.dev)

Having a major issue with our author pages in bricks. For some unknown reason, the page is showing the details for the wrong author.

For: Brendan Frye | CGMagazine
it is showing the details for: Wayne Santos | CGMagazine

We have no idea why this would be happaning

1 Like

I can’t even pull author’s dynamic data at all.

Suggest you look at caching as I am seeing the correct authors on each url.

tried disabling caching and everything, it seems something is messed up with how it is pulling in the author details.

Hi Brendyn,
Like Alan, I see your posts on your Author Page, and the other guy’s posts on his page. Accordingly, I’m also guessing a local caching problem.

Try it with another browser/Incognito.

@Bfrye26 file includes\integrations\dynamic-data\providers\provider-wp.php, line 566

Change

$user_id = is_singular() || ( \Bricks\Query::is_looping() && \Bricks\Query::get_loop_object_type() === 'post' ) ? $post->post_author : $post_id;

To

$user_id = is_singular() || ( \Bricks\Query::is_looping() && \Bricks\Query::get_loop_object_type() === 'post' ) ? $post->post_author : get_the_author_meta('ID');

Not saying it’s the ultimate perfect solution that’s gonna work for all the cases, I’ll leave the Bricks team work on that, but it fixed my author page and nothing else is broken for me.

1 Like