• 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 Info Problem

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 Info Problem

This topic is: not resolved

Tagged: post_info

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by David Chu.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 10, 2015 at 10:11 pm #136967
    pixelloop
    Participant

    I am trying to use the below filter on an archive template to replace the post info in my loop. This doesn't have any effect without the priority number 20 at the end, but when it does work it literally prints to shortcode as displayed as opposed to getting that data from the database for output. What am I doing wrong here? Can I not use these shortcodes in this location? Is it to do with being in or out of the loop? What is the best approach as I can't find anything on the forums.

    Note: I only want this format to appear on my custom post type archive.

    
    add_filter( 'genesis_post_info', 'sp_post_info_filterx', 20 );
    
    function sp_post_info_filterx($post_info) {
    	$post_info = 'by [post_author_posts_link]';
    	return $post_info;
    }
    

    I cannot include the url because the client has it behind a firewall at the moment.


    I write articles about blogging, WordPress and building a business online at Mazepress.

    January 11, 2015 at 10:43 am #137062
    David Chu
    Participant

    Hi,
    Many people don't know that shortcodes are not automatically available everywhere, especially in templates, although they are in page content and a few other spots. do_shortcode() is a function that should get that working for you. I added that to your code:

    function sp_post_info_filterx($post_info) {
    	$post_info = 'by ' . do_shortcode('[post_author_posts_link]');
    	return $post_info;
    }

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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