Category ACF Fields to form on Archive Header
What is the correct DTX code to use for dynamictext form fields with data from a Category’s ACF custom fields – not a post’s fields?
The form I have on an archive header only pulls in the data from the fields from the category’s first post, not the fields of the category itself. The same thing happens with CF7_get_post_var or CF7_get_custom_field
For example, at https://truetonegroup.com/willienelson, the ACF field “release” shows the album title on that category header page, as it’s supposed to. The “download” button there opens the form. The second line of the form should be what’s in the category’s “release” field, which is “The Border,” but instead is show the “release” field for the first post below it “Long Story Short …”
If there isn’t an exact code for this, what are my options in php?
Is there a way to trigger custom values from the form’s CF7 shortcode like what I added at the end?
[contact-form-7 id=”87c1bf2″ title=”Download Category” release=”The Border”]
The page I need help with: [log in to see the link]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس