• 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

do_action( 'genesis_entry_header' ); outputs no link?

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 › do_action( 'genesis_entry_header' ); outputs no link?

This topic is: resolved

Tagged: do_action('genesis_entry_header');, doesn´t work locally but live?, genesis structure

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 5 months ago by Henrik Blomgren.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 27, 2015 at 11:31 am #169226
    Henrik Blomgren
    Member

    Been working a bit on a new theme locally for a project of mine. So far I´ve managed to complete most things. But I´ve encountered a weird error?

    I use
    do_action( 'genesis_entry_header' ); Do display a header with a link to the post in a widget. But all I get is a title output with the post title as if I were on a single post?

    Here is the code in it´s full glory

    <div class="blog-list">
    	<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
    		<?php printf( '<article %s>', genesis_attr( 'entry' ) );
    			echo '<div class="post-image"><a href="' . get_permalink() . '">' . genesis_get_image( array( 'size' => 'related' ) ). '</a></div>';
    			do_action( 'genesis_entry_header' );
    			echo '</article>'; ?>
    	<?php endwhile; ?>
    	</div><!-- .blog-list -->

    It´s the same as found in the loop structure in the base genesis. I´ve used this code before and it works just fine. Outputting a clickable title whenever I´ve used it.

    So I´m a bit worried about this now.

    Sadly no live version available yet 🙁 I´ve used basically the same code on my current site http://henrikblomgren.net for the blog area on the front page. There it outputs the right things. Any idea as to why it doesn´t output the link as it should on my local development site? It just stopped working for some odd reason.

    October 27, 2015 at 12:49 pm #169234
    Henrik Blomgren
    Member

    Well... I turned my computer off. Went away for a bit, changed from having a static home page and a certain page for articles to being dynamic, refreshed the site and voila, links work as they should again.

    So... am I some computer wizard finding new ways of breaking everything or just what am I?

    A quick test, once again using the prefered way of handling a front page and blog page without using the blog template results in the above error. So fun times ahead.

  • 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

© 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