HI Ben
It’s Mark your old kadence evangelist.
I’m making sure that any new client I get gets their own kadence membership, so that it helps everyone.
But I need to get support sometimes in different accounts.
This might be really simple for you—
and it’s a little outside the bounds of support but I thought I’d ask. Might be easy.
Woocommerce –
we know you can display products by lots of factors via shortcode.
AND, I discovered that each woo product does have a post author just like any post.
so for each woo product, you can set an author just like a post.
Basically we are showing all of the products by a particular author on their user profile page. (the products are books)
There has to be a way to use the author of the product in the shortcode
The author info feeds in from Amazon, and populates the author user level.
so it’s the user profile, the user from the author slug
we just want to show their books from the store.
the code given is
$args = array(
‘author’ => $author_id,
‘post_type’ => ‘product’
);
$author_posts = get_posts( $args );
I just don’t know how to make this a shortcode that gets all of the products from the author.
I don’t want to add the php to a template, I’d rather have shortcode in a pagebuilder.
It’s jsut the product array, I need to filter by the pproduct post type author.
should be easy. it’s just another selector
*Login to see link
what are your thoughts?
This is above and beyond, but it might be a simple no brainer for you.
Doesn’t it make sense that they might have put the bloody attribute in there?