Advanced Custom Fields in posts muck up Archive pages

Community Forums Forums Design Tips and Tricks Advanced Custom Fields in posts muck up Archive pages

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sridhar Katakam 1 year, 9 months ago.

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

    sheilab
    Participant
    Post count: 16

    This is an artist’s portfolio site. The current projects posts have Advance Custom Fields displayed using Genesis Simple Hooks. The postsĀ  will look fine with a little CSS formatting.

    http://www.bergmanmediaservices.com/test-slideshow-page/

    The problem is that the two custom fields (a slideshow and some descriptive text) are brought into the archive page entries no matter if I haveĀ  the Genesis theme settings set to display post excerpts or display content.

    http://www.bergmanmediaservices.com/project-archive/

    How do I keep the custom fields from being displayed on the archive pages in favor of the post excerpts?

    #22406

    Sridhar Katakam
    Participant
    Post count: 1068

    Have you put the if conditional in the hook for your custom fields to appear only on single pages?

    Using CSS you can hide those two elements on your project-archive page like so:

    [css].page-id-711 .project_description,
    .page-id-711 .slideshow_shortcode {
    display: none;
    }[/css]


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

You must be logged in to reply to this topic.