Add Custom Post Type in Homepage Latest Block?

Posted in: Newspaper
Post count: 7

Hi,

I’ve created a “News” CPT via custom code in function.php file. The CPT is working great except it’s not appearing in the Home page “Latest” block at bottom. I want it there, but can’t find where to update?

Also I want the “Latest” section modified in a way that if I load site.com/news (news is a page), then in the Latest block, only News CPT will load.

Can anyone guide me which file to update?

Post count: 23312

Hello ariful,

Unfortunately, our theme has not been designed to use the CPT in Latest Articles, feature from our theme, sorry! The custom post type will appear only in Blocks. So, in this case, a quick solution would be to use a Default Page Template (not Pagebuilder+Latest Articles+Pagination) and then, at the bottom of your page you should use your CPT and sorting it by Latest Articles.

Thanks for your understanding!

Post count: 32

Hi!
I have a special landing page for CPT, https://magazeta.com/news/
And using “Pagebuilder+Latest Articles+Pagination” template for this.
In Latest Article > Filter settings I entered my CPT name, so it shows latest CPT posts, but the pagination doesn’t work (returns 404):

https://magazeta.com/news/page/2/

Is there any work around? Something to fix in fucntions.php or by cloning page template?

Thank you!

Post count: 23312

Hi,

If you want to read more information about CPT, notice that we have a useful manual here -> https://forum.tagdiv.com/custom-post-type-support/ Notice that any other customization involves doing such a custom work and we can’t provide something like this at the moment, sorry!

Thanks for your understanding!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.