- This topic has 11 replies, 7 voices, and was last updated 4 years ago by
Fernando.
-
AuthorPosts
-
March 3, 2021 at 12:13 am #1679800
Frank
Hi all,
Currently I’m trying to retrieve and display some custom fields in GeneratePress, which I have added through an own Plugin. With a Header element, I have the option to use {{custom_field.fieldname}}
And when I add {{custom_field.pinterest_description}} to this header block, this works perfectly!
Now however, I would also like to use the same field in another element (type: block) which I would like to include for example “after_content”. But when I do this I just get the text: {{custom_field.pinterest_description}} displayed on the fontend and not the content, like it does in the header.
I know I could extend my plugin with a shortcode to display these fields, but I would like to know if there is a standard way to do this (just like in the header)?
I’m preferably not looking for a solution to use ACF or another kind of plugin.
Thanks in advance!
March 3, 2021 at 2:16 am #1679937David
StaffCustomer SupportHi there,
GPP 2.0 has dynamic content in the Block Element – its currently in alpha – read more here:
March 3, 2021 at 3:18 am #1679989Frank
Ah found it, let me try 🙂
March 3, 2021 at 5:29 am #1680140David
StaffCustomer SupportFeedback is always appreciated 🙂
May 18, 2021 at 10:02 am #1788240Rishabh
Hi, can GPP 2.0 extract dynamic content from “Advanced Custom Fields” ?
[Edit] Okay, So I can extract dynamic text using the method mentioned here: https://generatepress.com/forums/topic/gp-premium-beta/#post-1652445
But, is there a way to extract dynamic image from ACF fields?
May 18, 2021 at 10:47 am #1788298Ying
StaffCustomer SupportHi Rishabh,
Yes, dynamic blocks should work with ACF 🙂
May 18, 2021 at 11:12 am #1788333Rishabh
But there is no option to extract content from ACF fields.
Edit: SOLVED
May 18, 2021 at 1:04 pm #1788491Ying
StaffCustomer SupportGlad you figured it out 🙂
May 27, 2021 at 1:45 am #1799874Sergio
Hi Rishach!
How did you solved?
I would like to create a custom archive page with fields from ACF with the new feature of GP 2.0 but I am not able…
Thanks in advanceMay 27, 2021 at 4:26 am #1800021David
StaffCustomer SupportHi there,
in the Dynamic text type – select Post Meta – and then in the Meta Field Name provide – add your ACF field name. This will work with simple fields.
March 22, 2022 at 1:11 am #2163037Gaurav Tiwari
Is it possible to use Custom Fields, if I am not using GPP theme?
March 22, 2022 at 1:37 am #2163066Fernando Customer Support
Hi Gaurav,
Yes, this would be possible, but custom code would be needed. This would be out of our scope.
Here is an article you may refer to with regards to what GeneratePress Premium Support includes: https://generatepress.com/what-support-includes/
Hope this clarifies. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.