• 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

Featured post not working on archive sidebar

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 › General Discussion › Featured post not working on archive sidebar

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 11 months ago by Marcy.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 3, 2013 at 6:04 am #48952
    etchattic
    Member

    Hi there

    I think I know what the issue is on this but don't know how to resolve it. I have grid layout for a specific category page ( archive) and have set in my functions.php for the content not to show and only the featured image and meta ( categorys ) to show.

    The problem is that that function no makes my featured posts widget in the sidebar not show it's content. Is there a work around on this

    Thanks
    Craig

    http://poweroffood.com/recipes/breakfast-brunch/
    July 9, 2013 at 11:40 am #49983
    Marcy
    Participant

    You don't list the code you added to your functions.php, but if you wrap the function in a conditional for just the pages that you don't want the content to show on, the Genesis Featured Post widget should still add content in the sidebar.

    The conditionals are on this page:
    http://codex.wordpress.org/Conditional_Tags

    One of these may work for you:
    is_post_type_archive() or is_category() or Is_archive()

    So you would do this to your function;

    function xyz() {
    if ( is_post_type_archive() ) {
    /* Put your code here */
    }
    }


    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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