This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $my_custom_content = get_post_meta( $post->ID, 'my_custom_content_meta_key', true ); ?> | |
<?php if ( '' != $my_custom_content ) : ?> | |
<?php echo apply_filters( 'the_content', html_entity_decode( $my_custom_content ) ) ?> | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function change_default_title( $title ) { | |
$screen = get_current_screen(); | |
if ( 'post' == $screen->post_type ) { // Replace 'post' with the name of the post type you want to use with the new title | |
$title = 'Enter headline here'; | |
} | |
return $title; | |
} | |
add_filter( 'enter_title_here', 'change_default_title' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( $ ) { | |
$.ajax({ | |
url: "http://<site-url>/_api/web/fields/getbytitle('Display Name of Field')", | |
type: "GET", | |
headers: { "accept": "application/json; odata=verbose" }, | |
success: successHandler, | |
error: errorHandler | |
}); | |
function successHandler( data ) { |