WordPress.org

Forums

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

  1. dmodegirl
    Member
    Posted 2 years 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! ;)

    http://wordpress.org/extend/plugins/woocommerce/

  2. bheadrick
    Member
    Posted 2 years ago #

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

    you could use a product shortcode in the blog posts
    http://wcdocs.woothemes.com/user-guide/misc/shortcodes/

  3. dmodegirl
    Member
    Posted 2 years 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
    Member
    Posted 2 years 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
    Member
    Posted 2 years ago #

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

  6. bheadrick
    Member
    Posted 2 years 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

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.