Blog

WordPress Custom Fields – Adding Custom Meta Data To Posts

WordPress Custom Fields – Adding Custom Meta Data To Posts

Output A Single Custom Field Weather when I wrote this: Output Multiple Custom Fields As A List Cost: Friendliness: Cleanliness: CSS From The Video Tutorial .important-details { margin-bottom: 10px; background-color: #fff; content: “”; display: table; clear: both; padding: 10px; } .important-details li { float: left; list-style: none; margin-right: 20px; }

WordPress RSS Feed With Featured Image

WordPress RSS Feed With Featured Image

add_action( ‘init’, ‘create_posttype’ ); function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = ” . get_the_post_thumbnail( $post->ID, ‘medium’, array( ‘style’ => ‘margin-bottom: 15px;’ ) ) . ” . $content; } return $content; } add_filter(‘the_excerpt_rss’, ‘featuredtoRSS’); add_filter(‘the_content_feed’, ‘featuredtoRSS’);