• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Post edit function needs added but how and where?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: resolved

Tagged: Post edit function

  • This topic has 5 replies, 2 voices, and was last updated 10 years, 4 months ago by SoZo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 28, 2013 at 1:32 pm #15620
    Diversified Woman
    Member

    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;
    }}

    January 28, 2013 at 1:51 pm #15631
    SoZo
    Member

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


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

    January 28, 2013 at 1:55 pm #15638
    Diversified Woman
    Member

    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]

    January 28, 2013 at 1:55 pm #15641
    SoZo
    Member

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


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

    January 28, 2013 at 7:54 pm #15850
    Diversified Woman
    Member

    Thank you SoZo that worked perfectly!

     

    January 28, 2013 at 8:06 pm #15854
    SoZo
    Member

    You're welcome 🙂


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

  • Author
    Posts
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.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble