Tagged Questions
0
votes
1answer
38 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 ...
2
votes
1answer
131 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
43 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 = ...
1
vote
2answers
945 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
70 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
118 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')): ...