Featured post not working on archive sidebar

Community Forums Forums General Discussion Featured post not working on archive sidebar

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Marcy 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48952

    etchattic
    Participant
    Post count: 31

    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/
    #49983

    Marcy
    Participant
    Post count: 286

    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 */
    }
    }


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

You must be logged in to reply to this topic.