Hi kelliott1490,
The code provided by John Huebner actually works only that it is missing the closing symbol )
This is what worked for me:
$date = date(‘F j, Y g:i a’, strtotime(get_field(‘date_field’)));
echo $date;
This seems to be working now. by using
add_row( $selector, $value, $post_id );
in place of:
update_field($selector, $value, $post_id);
Hi John,
I was actually able to fix this issue already. The error came from the line:
WRONG line : $e_post = get_page_by_title( $title );
CORRECT line : $e_post = get_page_by_title($title, OBJECT, ‘company’);
This is what I currently have.
elseif ($product_id == 1126) {
$e_post = get_page_by_title( $title );
$epost_id = $e_post->ID;
$member = wp_get_current_user();
$newmember = $member->ID;
update_field( ‘comp_members’, $newmember, $epost_id);
echo “New Member, $newmember , added to $title.”;
} // End of new member
Thoughts?
Yes, totally possible, if you are using the ACF Pro. Just adjust the width, in your case 25%, See attached screenshot.
Can you attach screenshots? Is this for a custom post type?
Hi Fotis,
When it comes to Page Links, try this link, https://www.advancedcustomfields.com/resources/page-link/.
OR this, this worked for me.
oh awesome, when is version 5 coming out?
I don’t see a “Wrapper Attributes” option. Is this available on the free plugin? If not, what do I need to purchase?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.