Post edit function needs added but how and where?

Community Forums Forums Design Tips and Tricks Post edit function needs added but how and where?

This topic is: resolved

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

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

    Diversified Woman
    Participant
    Post count: 50

    I need to add the link to appear in my “posts” that says “Edit” because for some reason this is not appearing at the bottom of each post like did with the “former themes” I’ve used. 
    I am assuming it goes into my functions.php file (child theme?) as [post_edit] but just don’t know the correct formatted way to insert inot the actual functions.php code. 
    Can someone let me know how this should display? Thanks. :)
     /** 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_date]‘;
        return $post_meta;
    }}

    #15631

    SoZo
    Moderator
    Post count: 1573

    Add [post_edit] after [post_date] in the function you included


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #15638

    Diversified Woman
    Participant
    Post count: 50

    Hi Sozo,

    So like so with the ” ” on both sides of it?

     /** 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_date]‘ ‘[post_edit]‘ ;
        return $post_meta;
    }}

    [post_edit]

    #15641

    SoZo
    Moderator
    Post count: 1573

    No, both shortcodes, and anythign else you want output, goes within the single quotes


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #15850

    Diversified Woman
    Participant
    Post count: 50

    Thank you SoZo that worked perfectly!

     

    #15854

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

The topic ‘Post edit function needs added but how and where?’ is closed to new replies.