0
votes
0answers
145 views

Dynamically generate a sub-page for each ACF repeater field created

I've created a custom post type in my functions file and am using an ACF repeater field to generate custom fields, one of which is an repeater field for events. I'm trying to get Wordpress to ...
0
votes
1answer
272 views

How to autopopulate the Advanced Custom Fields from the submitted form data?

I use this code in the functions.php to autocreate a post after a form has been submitted: <?php add_action('iphorm_post_process_1', 'mytheme_create_wp_post', 10, 1); function ...
3
votes
1answer
1k views

Generate Advanced Custom Fields box in custom admin menu page

I have created an custom admin menu page called FCC Youtube with add_menu_page function which has some custom fields I manually generated via HTML and PHP: code ( just the part how I created this ...
0
votes
1answer
74 views

Perform function on publish AND save (not just save)

I am using this function to auto-set a post title based on a couple of custom fields: function set_event_title( $data , $postarr ) { if($data['post_type'] == 'event') { $getdate = ...
0
votes
1answer
615 views

Excerpt length: get first paragraph

I'm trying to figure out if it's possible to get an excerpt from each post, grabbing the first paragraph from each one. I'm currently using the ACF plugin and have custom post types and custom fields. ...
1
vote
2answers
2k views

Inserting Gravity Form checkbox values into Advanced Custom Fields

I'm trying to feed checkbox values from a Gravity Forms form (which creates a new post) into an Advanced Custom Fields field. I've had a read around and found some info in a post (at the bottom of the ...
0
votes
1answer
94 views

does acf_save_post cause endless loop?

I am using Advanced custom fields acf_save_post hook in one of my functions. In that function I use the add_post_meta function. Does this call acf_save_post again and cause an endless loop? ...
0
votes
1answer
158 views

Adding class to last list item? Not WP generated

this one has been getting me for a while. At the moment I have a repeater field with Advanced Custom Fields: <ul id="servicelist" class="clearfix"> <?php if(get_field('homepage_service')): ...