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’);

WordPress Custom Post Type Function Without A Plugin

WordPress Custom Post Type Function Without A Plugin

This is the code you need to create a bare-bones WordPress custom post type that will allow you to better organize the posts on your site. This code was originally posted on the WordPress Codex. function create_posttype() { register_post_type( ‘wpll_product’, array( ‘labels’ => array( ‘name’ => __( ‘Products’ ), ‘singular_name’ => __( ‘Product’ ) ),…