advanced-custom-fields

How to pass custom fields into mapbox-gl js to create points on map?

流过昼夜 提交于 2021-01-07 06:59:18
问题 I've created a map using mapbox and plotted multiple custom points that you can interact with. I am also using Wordpress and want to use advanced custom fields to create each point so they can easily be managed from a non-technical person. The fields are all setup, but I am having trouble passing them into the javascript in my php template. I've tried using a loop but I can't use the loop inside javascript. Here is my Mapbox code that I am using to plot the points and want to use advanced

advanced custom field (ACF) Repeater + Contact Form 7

对着背影说爱祢 提交于 2021-01-07 02:44:43
问题 I have a Repeater field which creates " jobs " each job has title, text as sub-fields and also a contact form 7 form which sends jobs applications. I want to add hidden field which will also send the sub-field " title " so whenever form is submitted we know which job the sender sent the application from Tried to use: Contact Form 7 Dynamic Text Extension but it is not working with ACF as far as I'm concern any help will be appreciated 回答1: you could use CF7's 'wpcf7_form_hidden_fields' filter

advanced custom field (ACF) Repeater + Contact Form 7

徘徊边缘 提交于 2021-01-07 02:44:23
问题 I have a Repeater field which creates " jobs " each job has title, text as sub-fields and also a contact form 7 form which sends jobs applications. I want to add hidden field which will also send the sub-field " title " so whenever form is submitted we know which job the sender sent the application from Tried to use: Contact Form 7 Dynamic Text Extension but it is not working with ACF as far as I'm concern any help will be appreciated 回答1: you could use CF7's 'wpcf7_form_hidden_fields' filter

gatsby-source-graphql + ACF fields not showing up

佐手、 提交于 2021-01-05 10:26:45
问题 I'm wondering why my ACF fields are not showing up in my gatsby app using the gatsby-source-graphql plugin? My ACF fields show up when I use the WP plugin: WP GraphiQL, but not when I run my gatsby app. Can I only import ACF fields using gatsby-source-wordpress??? Everything else seems to show up. I have a custom post type that I'm using no problem, but ACF fields are the issue. Any help would be amazing, Thanks, Spencer They show up in WP backend: But do not show up when Gatsby runs: Here is