question about hiding post content

Community Forums Forums General Discussion question about hiding post content

This topic is: resolved

Tagged: 

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #62773

    Kevin
    Participant
    Post count: 72

    I created a CPT and ACF for a website. On my archive-cpt.php page I only want the post titles showing (not the content) I used
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    on the archive-cpt.php page but the content of the post is showing on this page. Is there a way to only show titles and then show content on single-cpt.php page? (the content works fine on the single page)

    • This topic was modified 1 year ago by  Kevin.
    • This topic was modified 1 year ago by  Kevin.
    • This topic was modified 1 year ago by  Kevin.
    • This topic was modified 1 year ago by  Kevin.
    #62778

    nunotmp
    Participant
    Post count: 164

    If the content is still showing you may be using html5? The hook has changed so you need to use
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );


    #62796

    Kevin
    Participant
    Post count: 72

    I tried that but it’s not HTML5. I’m using the education child theme

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

You must be logged in to reply to this topic.