Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Ben can you help? this might be a no brainer for you

Home / Forums / Ascend Theme / Ben can you help? this might be a no brainer for you

This topic is: Not Resolved
[Not Resolved]
Posted in: Ascend Theme
July 14, 2019 at 3:35 am

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

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?

  • The forum ‘Ascend Theme’ is closed to new topics and replies.