Show Module on a single CPT post?

Posted in: Newspaper
Post count: 209

Hello,
I’d like to show a Module-info on the single CPT post cloud template. How can this be done?

I tried it by placing a Flex Block Builder Element on the CPT cloud template, selecting the module and entering the CPT name in the filter. But I need a kind of variable “Current post” for the Post ID filter, to show the module of the current post.

Or can this be done another way?

Post count: 21065

Hello!

Edit the single cloud CPT with the tagdiv Composer, add the Flex Block Builder shortcode on the page and select your module from the Module tab: https://app.screencast.com/oK9g03U0SDVpC
You can use this filter: https://app.screencast.com/HAHjr5HiVKMbj to display the CPT.
Unfortunately, we have no special filter for the current CPT. But why would you like to display the current CPT on the same page. It is already there.

Thank you!

Post count: 209

Hello Bettina,

sorry, my explanation of what I wanted was not good enough. I will show you some links to better understand, what I want to do.

I here have a category list using modules, based on CPT UI and ACF:

https://www.literaturcafe.de/rubrik/schreibwettbewerbe/

On the post-details of a CPT I want to show the exact same data as in the modules:

https://www.literaturcafe.de/schreibwettbewerbe/piper-schweibwettbewerb-between-pages/

I did this now by re-designing the module layout on the single page.

But I thought it would be more elegant, to show the module of one post also on the single page. So when the layout of the module changes, the single page also automatically shows the same.

How can I do this? Show the content of a module on a single page?

Post count: 27744

Hello,

From what I see, you managed to add the custom fields and taxonomies that you have on the module in the CPT single template.

Thank you!

Post count: 209

Hello,
yes, I was able to make a copy of the module layout. But my question is: Is it possible to use the module itself on a single page, so I don’t have to edit the copy if I change something in the module layout.

Post count: 27744

Hi,

Yes, you can use it on a single page, but if you change the original module, the change will not apply to the copy module; you need to edit it individually.

Thank you!

Post count: 209

Yes, but if I show it on a single post, I have to somehow set a filter, that it shows only the data of the current post id. How can I do this?

Post count: 27744

Hi,

Please provide a video with your steps and settings so I can understand what you want to achieve.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.