Custom Fields Code not echoing whats in the value field

I’m too new to be able to add a comment, but $post_id looks like it’s undefined. You’ll need to set it, one way is to grab it from the global $post object like so: add_action(‘genesis_after_header’, ‘mbr_after_header’); function mbr_after_header() { global $post; if ( is_singular( ‘post’ ) ) $cf = get_post_meta( $post->ID, ‘mbr_customfield’, true ); if(empty($cf)) … Read more

how can i stop custom fields that have apostrophes from breaking my code

you could apply the content filters: echo do_shortcode( “[av_button label=””.apply_filters(“the_content’,(get_sub_field(‘speaker_file_label’)).”‘ link=’manually,”.get_sub_field (‘speaker_file_url’).”‘ link_target=”_blank” size=”medium” position=’left’ color=”theme-color”]” ).'<br>’; the above added pp marks <p></p> try this: echo do_shortcode( “[av_button label=””.wptexturize( get_sub_field(“speaker_file_label’)).”‘ link=’manually,”.get_sub_field (‘speaker_file_url’).”‘ link_target=”_blank” size=”medium” position=’left’ color=”theme-color”]” ).'<br>’;

Custom Field Suite A little problem

either change the field type to text and echo it out as you currently are or remove the tag and echo out the link as is: <button class=”claim-button”><?php echo CFS()->get( ‘tracking_url’ ); ?></button> http://customfieldsuite.com/field-types/hyperlink.html OR (and this would be my choice if I was you) Switch to ACF and use that for all your custom … Read more

WP Custom Fields Metabox Disappears – ACF plugin issue [closed]

ACF 5.6+ intentionally removes the custom fields metabox to improve performance when loading posts. To display the metabox, add this to functions.php in your theme: add_filter( ‘acf/settings/remove_wp_meta_box’, ‘__return_false’ ); In addition to the above code, make sure that the custom fields metabox is enabled in Screen Options at the top of a post, and that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)