Support » Plugin: WooCommerce » Show products as blog posts

Viewing 5 replies - 1 through 5 (of 5 total)
  • as in they want to write a separate article about each product?

    you could use a product shortcode in the blog posts

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

    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.

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

    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);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show products as blog posts’ is closed to new replies.