Archived topic
Creating a product profile directory
7 replies · Started by overseer on August 4, 2022
Hey folks,
I'm creating a blog and I'd like to know if it was possible to create a template for something similar to a 'product profile directory'. How I'm thinking it would work is visitors that are reading an article I've written about a product, they would see a small profile above the sidebar about that product and an affiliate link that they can click on to purchase it. I've attached a link below:
The product profile I'm referring to is the section that says "Game Profile". The directory part would be by clicking on the game title that leads to articles related to the product. How would I go about creating this? Thank you to everyone in advance for their responses.
Hi Overseer,
You can create a Block Element, and in the block element, use GB Headline Blocks to retrieve dynamic data from the Post/Product.
You can also create custom fields for your posts/products, and then retrieve them through the Headline Block.
A popular plugin used to add custom field is ACF: https://www.advancedcustomfields.com/resources/getting-started-with-acf/
So for instance, you add a custom text field to your post/product like Publisher, then you can retrieve it through a GenerateBlocks Headline block’s dynamic data feature: https://docs.generateblocks.com/article/headline-overview/#dynamic-data
Okay awesome, I'll test out ACF and see how that works. Regarding the directory portion, how would I go about creating that? Here's an example of what I mean, using the same example of Two Point Campus from the previous comment:
It doesn't have to be a header as large, but something similar, where an overview, reviews and more are laid out for the visitor to click on.
I’m not sure if creating a global set of sub pages would be possible in WordPress, but if it is, you’ll most likely need custom code or a third party plugin for that.
It might be good to ask in our GP Community for suggestions on which plugin has such a feature: https://www.facebook.com/groups/1113359788719597
Okay, I'll check out the group and ask around. Lastly, I just downloaded ACF, but how do I integrate the custom fields into Generateblocks?
Hi there,
As Fernando replied here: https://generatepress.com/forums/topic/creating-a-product-profile-directory/#post-2303747
You can use a Headline block from the GenerateBlocks plugin to fetch the custom field.
https://docs.generateblocks.com/article/headline-overview/#dynamic-data
If the custom field is added to the post, you can choose post meta as the content source, then enter the custom field name in the Post meta field.
Awesome, thank you for all the help everyone. It's only been a few weeks since I've had GP Pro and the experience is already top tier!
You are welcome and we are very glad to hear that :)