Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Last active January 8, 2016 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrfoxtalbot/0f69321d6cc7e9c26c54 to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/0f69321d6cc7e9c26c54 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'the_content', 'my_the_content_filter', 20 );
function my_the_content_filter( $content ) {
if ( is_single() )
{
global $post;
$field = get_fields($post_id);
$imgLnk=get_bloginfo( 'stylesheet_directory' );
$pgLnk=get_post_meta($post->ID, 'Button', true);
$content .= '<div class="cf-wrap">CF go here<br> ' .$field. '</div>';
}
return $content;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment