Browser: Brave
OS: macOS
Hello!
I am having issues with the php query editor. I am getting parse errors - but I believe I followed the example.
[Edit: the first one I think was because I actually missed the speech marks - so deleted that from issue. But still having issues with one below]
Then in another query, I am trying to get the author_id so I can query by that author (maybe I am missing a more streamlined approach than needing to make a function in the functions.php? But author_meta:ID does not work)
$current_author_id = profile_get_author_meta('ID'); //This function is just a $author_id = get_the_author_meta( 'ID' ); to return author ID.
return [
'post_type' => 'research',
'author' => $current_author_id,
'post_status' => 'publish',
'posts_per_page' => -1,
];
But this returns every post, no matter the author. I also tried to echo the value of the function - but that got another error so think thats wrong.
Lastly, is there a brick specific cache? I have been having a few issues lately and when I clear my website’s cache - nothing fixes, then a few days later the issue disappears? Does Bricks have a separate cache which I can flush on these occasions?
Many thanks,
Yasmine