Site logo

Archived topic

CPT Archive not showing content

1 reply · Started by Tom on January 6, 2023

Viewing posts 1–2 of 2

Hi,
I've created a CPT and followed your doc for creating the single and content page (https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/)

However the archive of the post doesn't display any posts. It shows the title of Archive: Presentations, and the code for each post is there. e.g:

<article id="post-3292" class="post-3292 presentations type-presentations status-publish hentry" itemtype="https://schema.org/CreativeWork" itemscope="">
	<div class="inside-article">
		
			<div class="entry-summary" itemprop="text">
							</div>

			</div>
</article>

My end goal is to present the presentations in 2 columns date descending.

Thanks, Tom

Hi Tom,

It sounds like something is wrong with the setup of your CPT template.

If you are not familiar with coding, I would strongly recommend using a plugin like Custom Post Type UI to create CPT, it will make things much easier. I use it all the time instead of creating CPT using code :)

This archived topic is closed to new replies.