customizing post meta – snippet not working

Community Forums Forums Design Tips and Tricks customizing post meta – snippet not working

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  micki 1 year, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29055

    micki
    Participant

    hi, i am trying to customize the text prior to the category, instead of the default “filed under”. i inserted this into my functions file:

    /** Customize the post meta function */
    add_filter( ‘genesis_post_meta’, ‘post_meta_filter’ );
    function post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = ‘[post_categories before="Blog Category: "] [post_tags before="Tagged: "]‘;
    return $post_meta;
    }}

    which i got from the snippets page and it is not changing anything.

    I then tried this:

    /** Customize the post meta function */
    add_filter(‘genesis_post_meta’, ‘post_meta_filter’);
    function post_meta_filter($post_meta) {
    if (!is_page()) {

    $post_meta = ‘Blog Category: [post_categories], Tagged: [post_tags]‘;
    return $post_meta;
    }}

    no change.

    i am using MomPrenuer Child Theme.  Am i missing something? thanks

    #29322

    Dorian Speed
    Participant

    I can help you with this code, but it might be easier if you use the Genesis Simple Edits plugin – it makes this all a bit simpler.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    #29331

    micki
    Participant

    thanks, i did install simple edits but it just makes me curious as to why these aren’t working,  the first snippet is from StudioPress…

    #29482

    micki
    Participant

    i thought for anyone else who may have this issue, I read on the old forum that simple edits can conflict with snippets, such as the above, added to the functions file when trying to customize post meta.

    http://www.studiopress.com/support/showthread.php?t=122707&highlight=post+meta+description

    #29790

    Dorian Speed
    Participant

    Did you get your layout working the way you wanted?


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    #29854

    micki
    Participant

    yes, got rid of simple edits, works perfect, thanks

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘customizing post meta – snippet not working’ is closed to new replies.