Ready to get started?Download WordPress


WooCommerce - excelling eCommerce
Show products as blog posts (6 posts)

  1. dmodegirl
    Posted 1 year ago #

    I have a customer that wants to use WooCommerce but have each one show up in the regular blog posts as well. Is this possible? I've tried searching endlessly for this and I'm not familiar with WooCommerce, so I figured I would post here. Thanks! ;)


  2. bheadrick
    Posted 1 year ago #

    as in they want to write a separate article about each product?

    you could use a product shortcode in the blog posts

  3. dmodegirl
    Posted 1 year ago #

    Thanks, I think they want it to just post automatically to the blog page so they don't have to do it again.

  4. bheadrick
    Posted 1 year ago #

    that's just generally a bad idea.
    for one thing, products aren't posts - they don't belong in the blog.

    I'd recommend something more like a widget that displayed the latest 3-5 products in the sidebar.

  5. dmodegirl
    Posted 1 year ago #

    I understand that but what the client wants the client gets or they take their money elsewhere. ;)

  6. bheadrick
    Posted 1 year ago #

    I figured you'd say that. You could modify the main query to include the product post type

    something like this:

    global $wp_query;
    $args = array_merge( $wp_query->query_vars, array( 'post_type' => array('post','product') ) );
    $query = query_posts($args);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.