Lego2012
12/14/2016 - 2:39 PM

Post Meta

Post Meta

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- If you are a beginner user, you might find the Simple Edits plugin helpful as it presents an easier method of customizing the post meta. -->

<!-- The snippets below may be used to customize the Post Meta in XHTML themes. If you are using a HTML5 (Pro) theme, use the Entry Footer customization snippets. -->

<!-- Below is the code to customize the post meta on your site: -->

//* Customize the post meta function
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
if ( !is_page() ) {
    $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]';
    return $post_meta;
}}

<!-- Below is the code to remove the post meta on your site: -->

//* Remove the post meta function
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );

<!-- Below is sample CSS to customize the post meta on your site: -->

/* Post Meta
------------------------------------------------------------ */
 
.post-meta {
    border-top: 1px solid #ddd;
    font-size: 14px;
    margin: 0 0 20px;
    padding: 5px 0 0;
}