Home › Forums › General Issues › Add a lot of custom fields to the_content › Reply To: Add a lot of custom fields to the_content
Thank you for your fast response!!
I see other option using some code like this:
add_filter( 'the_content', 'my_the_content_filter', 0 );
function my_the_content_filter( $content ) {
if ( is_single() )
{
global $post;
$pgLnk=get_post_meta($post->ID, 'Button', true);
$content .= 'CODE WHAT U WANT TO ADD HERE';
}
return $content;
}
but I don’t know how implement my code here, or if is posible…
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.