Dynamic Link to Brand URL
-
Hi,
I am trying to make a dynamic link that will take the user from the Product Page to the Brand Archive Page.
I want to be able to make a hyperlink that will take the user to “https://wordpress-ce.local/brand/bill-duff/” where bill-duff is the brand, and it would dynamically change based on whatever product the user is viewing. I want to put on the page: “Browse Similar Products” and have it link to the brand of that product.
Maybe there is a function that would do this and I just can’t find the correct function name. I tried doing something like https://wordpress-ce.local/brand/%brand%/ just to see, obviously it didn’t work.
The shortcode to Display brands of a specific product ALMOST works.
[pwb-brand product_id=”5″ image_size=”thumbnail”]
It DOES provide a link to the brand page, which is what I want. But I can’t edit the text or really change how it looks. It won’t stay in line with other text either.Any ideas on how I could accomplish this?
- The topic ‘Dynamic Link to Brand URL’ is closed to new replies.