Support » Plugin: Custom Post Type UI » Removing “category” meta-data from title area also removes featured image

  • Resolved cncladmin


    Hi there,

    I’ve created custom post types (named “resources”) to compose a resource library. I’m simply using my theme’s (Divi) template to display the post (I copied the standard “single.php” file and named it “single-resources.php”–it’s an exact duplicate except that I added 2 short codes right on top to display a “Resource Library” header for the posts).

    I’m wanting to remove the meta-data around the title (author, date, comments, and category), just leaving the title and the featured image. On Divi’s settings (“Theme Options”), I just removed these items from “postinfo.” I’m able to remove, date, author, and comments meta-data fine; but when I remove “categories,” the featured image also gets removed. This problem only happens on the custom-post-type posts; it’s not happening on my standard posts. I contacted Divi, and they said the problem must be with the custom-post-type settings, and that makes sense, since the problem is not happening on the standard posts.

    Any idea how I can fix this? If you look at this url — — , you’ll see that the category –“endorsed” in this example — still shows up next to the title (if I remove it using the them settings, then the featured image also disappears). Is there some setting that I missed when setting up this custom post type? Is there some other way I need to fix this–such as with css or editing the php template file? Hopefully I just missed some thing very simple.

    Thanks for your assistance,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Beckwith


    The BenchPresser

    Good day @cncladmin

    Despite what Divi support is claiming, it is more of an issue from their end than ours. This is because CPTUI does not put any influence on the active theme and how things are displayed to visitors. With that said, we do not have any settings at all related to display of categories on posts or featured images.

    What I would be most curious to see to start, is the single-resources.php file that you have and duplicated. I have a feeling that there is a section that is using Divi functions to output various parts based on settings, and that one of them is perhaps conditionally displaying too much or is somehow malformed.

    For example, I looked at the rendered view source for your link above, and this is the result found for the heading:

    <div class="et_post_meta_wrapper"><h1 class="entry-title">This is a Test Resource</h
    <p class="post-meta"><a href="" rel="category tag">Endorsed</a></p><img src="" alt='This is a Test Resource' width='1080' height='675' /></div> <!-- .et_post_meta_wrapper -->

    That </h right after the word Resource is extremely odd and tells me that something isn’t outputting proper HTML for you. However, I can’t say what at the moment.

    I’m still willing to help where I can, but it’s definitely Divi’s area to support most.

    Hi Michael,

    You solved the problem! I went back to the php file and I must have somehow accidentally clipped off a couple of characters when I copied it. I repaired it and problem solved! I apologize for taking your time with my silly mistake.

    Plugin Author Michael Beckwith


    The BenchPresser

    No worries, sometimes it takes an extra pair of eyes to notice the details. Glad I was able to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing “category” meta-data from title area also removes featured image’ is closed to new replies.