WordPress.org

Ready to get started?Download WordPress

Forums

Adding shoppable products to BLOG, not commerce site! (2 posts)

  1. hashtagnofilter
    Member
    Posted 8 months ago #

    Hey everyone,

    This is my first time posting on here so I really hope that there is a sharp mind out there with far beyond my understanding that can offer me some insight.

    I'd like to feature shoppable items on my blog, like if I have a beauty/fashion post then I'd like to be able to feature the mentioned products to the bottom of the post and link to where visitors can buy them from.

    You can check out this post on The Coveteur to better understand what I'm describing since I'm probably sucking at it right now: http://www.thecoveteur.com/selfie-beauty/

    I'm assuming that I'd have to add some post functions to do this... Does anyone know the easiest way to go about it or some codes that I can mess around with?

    Now what would also be wonderful is if the featured products across my WordPress site can be all called on one separate page, so there is one go-to place to check them out. The Coveteur's Shop resembles this: http://www.thecoveteur.com/shop/

    As you can see, all the products link to outside websites/stores. I don't want an eCommerce site, I just want to be able to highlight products on my blog.

    If anyone knows how to go about any of this, your input would be increeeedibly appreciated! Much gratitude in advance xx

  2. bcworkz
    Member
    Posted 8 months ago #

    There's probably a number of approaches. I think I would create a custom post type for the shopable items. Similar to the Links post type WordPress used to have except with the provision for a featured image. You could add a custom field for your regular posts to list which items to display at the bottom. And/or you could reference items in your blog using a particular HTML tag or shortcode.

    Your single.php template would be altered to display the custom field items below the post. If need be, it would also search through the post content for the particular tag or shortcode and display those items as well.

    The featured products page would then just be the archive page for the custom post type. It can be styled however you like.

    Do consider alternatives. Carefully choosing a good strategy now is preferable to rearranging things after the fact to correct for an earlier misjudgment.

Reply

You must log in to post.

About this Topic