- This topic has 7 replies, 3 voices, and was last updated 2 years, 1 month ago by Ying.
-
AuthorPosts
-
August 4, 2022 at 11:58 am #2303572overseer
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.
August 4, 2022 at 5:41 pm #2303747Fernando Customer SupportHi 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
August 4, 2022 at 6:44 pm #2303760overseerOkay 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.
August 4, 2022 at 8:31 pm #2303791Fernando Customer SupportI’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
August 5, 2022 at 10:09 am #2304557overseerOkay, I’ll check out the group and ask around. Lastly, I just downloaded ACF, but how do I integrate the custom fields into Generateblocks?
August 5, 2022 at 11:28 am #2304606YingStaffCustomer SupportHi 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-dataIf the custom field is added to the post, you can choose
post meta
as the content source, then enter thecustom field name
in the Post meta field.August 6, 2022 at 2:23 pm #2305370overseerAwesome, 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!
August 8, 2022 at 8:35 am #2307005YingStaffCustomer SupportYou are welcome and we are very glad to hear that 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.