Site logo

Archived topic

Can a Custom Post Type (created with Pods) copy the Customise settings for Blog

8 replies · Started by Michael on July 2, 2020

Viewing posts 1–9 of 9

I have a Custom Post Type created with the Pods plugin. It is very similar to the standard wordpress posts (title, image, excerpt, content) but has some additional custom fields and a related Custom Taxonomy.

I'd like to be able to amend the way this Pods CPT displays with the Customiser, in the same way that changing settings there affect the standard posts layout (under Customise > Layout > Blog). It can follow the exact same settings for Posts.

At the moment I am using Pods' Auto Template facility to control the layout of the CPT with a simple Pods template added after the_content().

Hi there,

any chance i can see the CPT ? Might give us an idea of what is doable and what is not.

Hi David thanks for the reply. Sorry - it's only on a local setup at the moment. Would screengrabs help?

What I've noticed is that some of the Customise > Layout > Blog settings work and change the layout on my CPT, but some don't. For instance, the Featured Image settings all seem to work fine on both the Archives and Single view of the CPT - i.e. I can change the image size and position as expected. However, if I set the Content: Archives to show Excerpts it works on the CPT archives page, but I also get the Excerpt showing on the Single CPT view.

So, for a blog post some of the settings I have are like:
CONTENT
Archive: show Excerpt (Single shows the blog post content)
FEATURED IMAGE
Location: Below Title

but for CPT it's doing this
CONTENT
Archive: show Excerpt (Single shows the CPT excerpt too, but I want it to be CPT content)
FEATURED IMAGE
Location: Below Title

Another difference is that fields like Tags, Categories, Date and Author are appearing on blog posts, but not on my CPT.

(Sorry if this about Pods/CPTs rather than GeneratePress)

Thanks David - I do have Excerpts checked in Pods > Edit > [my CPT] > Advanced Options > Supports.

Those filters are super useful - cheers!

At the moment thought I'm still stuck with the Excerpt showing on both the [myCPT] Archive AND Single... I'll certainly see whether Pods (and the ever-helpful Jim) can provide any thoughts...

OK - some progress. I tried enabling/disabling plugins, code snippets and themes. I've pinned it down to themes - and actually its happening in the child theme that I'm working on! Seems like I must have broken something myself, so I am about to check in there.

Thanks for help!

Ah ok -let us know how you get on

Found it - I'd been trying to achieve some design changes in the child template prior to purchasing the Pro version of GeneratePress. I should have scratched that earlier work.

So far I'm able to achieve what I need with GP settings, CSS in the Customiser, filters (in Code Snippets), and some Pods templating. At the moment my Child Theme is redundant (which to my way of thinking means GP and Pods are doing the heavy-lifting.

Thanks!

Awesome - glad to hear that !

This archived topic is closed to new replies.