Support » Fixing WordPress » How to use tags for such a showcase of products?

  • Hello,

    We run a website for a Sensor manufacturer. The site lists the Sensors (products) in 3-4 categories, and also lists applications in 6-7 categories.

    The individual product pages, in addition to the product specifications, also list hyperlinks (created manually) indicating that the product can be used in the linked application pages. Conversely, the individual application pages also lists hyperlinks of recommended products (again created manually).

    As the number of applications is growing, what would be the best way to automatically list recommended applications in the relevant product pages and recommended products in the relevant application pages? Using tags? Or any specific plugins?

    Thanks so much for any information that would help!
    Kartik

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not an Everything else WordPress topic.

    What plugin are you using for displaying those products?

    Not sure if this is of any help. But, In AFC (Advanced Custom Fields plugin). You can create a field for related items. You could probably create a new field where you can assign related products in the new field and loop through them to create a list of related products. I’ve seen this done but haven’t done it myself. You might also use AFC to create a separate fields for specifications and create a wp_query to compare the specs and generate a list of related items. You might also want to consider creating custom post types for each of the products that way you could divide the list into sections of related parts. Not sure of what you have these are some things that came to mind. Hope it gives you some ideals.

    Thread Starter Reed Sensor

    (@rre)

    @jdembowski Thanks for the reply! am not using any plugins to display the products. Standard posts.

    @mrtom414 Thanks as well! Will try AFC but I’m a user of wordpress and not a coder. So I’ll read up more about wp_query etc. So you don’t think tags will be useful?

    Thread Starter Reed Sensor

    (@rre)

    Hello,

    I’m trying to get this done by adding application tags in the product pages and product tags for the application pages. I am then trying to display them automatically by using the “Posts in Page” plugin.

    Hey @rre – Let me know if you get stuck creating the right shortcode in Posts in Page.

    adding application tags in the product pages and product tags for the application pages

    How, exactly, are you doing this?

    Have you got Posts in Page doing what you want? My guess, based on your description is that you’ll end up using something like:

    [ic_add_posts post_type='product' tax='product_cat' term='your_product_category_name']

    Depending on how you’re doing application tags, it might be something similar, just with different values for type, tax and term.

    I hope that helps!

    • This reply was modified 1 year, 11 months ago by ivycat.
    Thread Starter Reed Sensor

    (@rre)

    Hi ivycat!

    Ive added recommended product tags to the application posts. I’m going to add recommended applications to the products posts.

    After this, I plan on using “posts in page” plugin to to select the category and display by tag. This should wok on both sides.

    Thanks!

    Thread Starter Reed Sensor

    (@rre)

    Hey ivycat!

    I’m just trying to check if this is going to be possible. Let me explain:

    Have added all product tags to each application post and am able to successfully display them in the product pages by [ic_add_posts category=”applications” tag=’individual-product’ template=’page-posts.php’]

    Since I have not yet tagged the individual product pages with recommended application posts (it is a lot of work), is there any chance you are releasing anew version of “posts in page” with the function exclude_tag like you have exclude_category? This would greatly reduce the time for tagging.

    Thanks!

    Thread Starter Reed Sensor

    (@rre)

    Instead of adding multiple application tags to the individual product pages, would it be possible to use the exclude-tag shortcode if at all it may be available in the future? Or would you be able to use the tags from a post given the title?

    • This reply was modified 1 year, 11 months ago by Reed Sensor.
    • This reply was modified 1 year, 11 months ago by Reed Sensor.

    Hi @rre,

    is there any chance you are releasing anew version of “posts in page” with the function exclude_tag like you have exclude_category?

    We hadn’t planned on it but I can see how this would be useful. We’ll take a look at it but it may take a few weeks as we’re really busy with client work.

    Instead of adding multiple application tags to the individual product pages, would it be possible to use the exclude-tag shortcode if at all it may be available in the future?

    If I understand correctly, you are looking to list one or more application categories/tags within an individual product – is that right?

    Are the applications pages actual WordPress pages or are they a custom post type for applications? Or a post with a category?

    Since we don’t currently have the exclude_tag parameter, I’d look for another way in the short term.

    Or would you be able to use the tags from a post given the title?

    I’m not sure what you mean here. Can you explain?

    Thread Starter Reed Sensor

    (@rre)

    Hi ivycat!

    Thanks for your reply!

    1. exclude_tag in the shortcode: since you had’t planned on adding this, I’m assuming its not a feature many people ask for.

    2. Let me explain a bit more clearly. We have added individual product tags to appropriate application posts and we can, with “posts in page”, easily display recommended applications posts in the individual product posts easily. Our question is that since the product tags are already present in the application posts, would there be a way to display “posts in page” posts taking into account assigned tags of that particular application post? This is my question for which you had asked for more explanation.

    Thanks!

    Thread Starter Reed Sensor

    (@rre)

    Using the assigned tags for the post where the shortcode is being used, sieved by category, it would help display the recommended products (from the assigned tags) within the application posts.

    Adding this feature obviously depends on whether you think this requirement or the exlcude_tag feature is something that is required by all your plugin users 🙂

    Hi @rre,

    I’m still not quite sure I understand.

    1. Are the applications posts actual WordPress pages, posts with a category, or are they a custom post type for applications?
    2. Are you using WooCommerce for Products? If not, are these pages, posts, or another custom post type?

    Maybe an illustration or example would help?

    Thread Starter Reed Sensor

    (@rre)

    Hi @ivycat,

    1. The applications posts are standard wordpress posts within the “applcations” category and are assigned 4-5 product tags.

    2. Not using woocom. All posts are standard wordpress defaults.

    I have assigned product1, product2, product3, and product4 tages to “application-A” post. I can easily display recommended applications posts for example in the “Product1” post.

    My question is, since the tags product1, product2, product3, and product4 are already assigned to “application-A” post, is there any way your plugin can read these assigned tags and display recommended products within post “Application-A”? I have assigned the same prodct1,2,3,4, etc. tags to the individual Products1-4 posts.

    Thanks!

    Hey @rre,

    I’m honestly still having some trouble visualizing this.

    Could you do something like the following?

    [ic_add_posts category='application-A' tag='product1,product2']

    Thread Starter Reed Sensor

    (@rre)

    I had first added product tags to the individual application posts. With this I am easily able to display relevant applications in the individual product posts using the shortcode [icc_add_posts category=’applications’ tag=’product1′] in the Product1 post.

    Since I have only added product tags to the application posts, without adding application tags to the product posts (which would not be needed as tags are already assigned one way), is there a way to display the assigned tags to a post within that post? I could use the assigned product tags in an application post to display it? This was the feature I had requested.

    Thanks for all your time!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How to use tags for such a showcase of products?’ is closed to new replies.