Add custom ID to CPT posts only create not update
I’m trying to autofill a custom field only when the post is created and not when it is updated.
I’m trying to autofill a custom field only when the post is created and not when it is updated.
I am echoing thumbnails for a list of items within a ‘Show’ custom taxonomy. Within this taxonomy I have additional fields via Advanced Custom Fields / ACF:
I’m using a pair of ACF date fields to create a query on a custom post type (event). I have a “Past Events” feed which is ignoring my usual technique for creating the following behaviour:
I want to load 3 posts that have the same custom field value as the current post.
for example:
The current post has 3 custom fields:
color: black
background: red
lastname: doe
Now I want to load three posts with these custom fields:
first post: color:black
second post: background:red
third post: lastname:doe
these are my codes:
Can I access the current category of a category feed with the rss2_head hook to add for example itunes tags?
I’ve the following code <?php if(have_rows('ore')):?> <?php while( have_rows('ore')): the_row(); $start = get_sub_field('start'); $end = get_sub_field('end'); ?> <?php if( get_row_index() != 1 ){ echo '/'; }?> <?php echo $start;?> – <?php echo $end;?> <?php endwhile;?> <?php endif;?> Which outputs the two fields (“start” & “end”) in this form: 12.00 – 13.00. In case there are … Read more
I have loop that displays all terms from custom taxonomy. I also have image field, attached to custom taxonomy. Now, I want to display image in my page template:
I’m using Advanced Custom Fields and I’m trying to show a custom field below the single post. I managed to get the code to render below the post, but when I set the field movie_actors and save, the entire page goes blank after I refresh it, it doesn’t show any errors on the screen although I already have debug mode enabled.
My field is set as User Object inside ACF, and the field type is user.
What I’m trying to do is to show a link to the user profile in Ultimate Member. I also tried to show a link to the default wordpress user profile just in case, and it also gives me the same result.
Update: I got this working with a different hook user_register. It looks like wpmu_activate_user was never triggering. I would still like to have this happen after the user verifies and sets a password though. Can anyone help? Current Code: function xxx_whmcs_signup($user_id) { //Get User Fields $user_info2 = get_userdata($user_id); $id = $user_info2->ID; //Get Custom Fields $first_name … Read more
I am unable to see the custom fields I have added in the website.