Conditional Logic Not Working on Post Header Layout

Title: Conditional Logic Not Working on Post Header Layout


Hey team,

I’m having an issue with conditional logic on my custom header layout in Cornerstone. I’m trying to display a universal blog post header (with breadcrumbs, dynamic title, etc.) only on blog posts, but it doesn’t seem to be working correctly.

Here’s what I’ve tried:


Screenshot 1 (Before)

  • The correct header is not displaying on a single blog post (Post Type: Post).
  • The layout loads, but the content section with the logic is missing.

Screenshot 2 (Conditions: Post Type is Post)

  • Set the section’s condition to:
    Post Type is Post
  • No change — it still doesn’t show on blog posts.

bebScreenshot 3 (Tested “All Singular”)


Live example:
https://dev.upward-impact.com/seo/insights/uncategorized/how-to-build-a-revenue-driven-seo-roadmap-not-just-a-list-of-keywords/

The section should render directly below the nav and include a custom headline and breadcrumb trail — but it’s not showing at all.

Any ideas what might be going wrong here? Is there a better condition to use than Post Type = Post for single blog posts within a custom header layout?

Appreciate your help!

I don’t see an option to leave a hidden/private note or whatever to give you my login credentials but can provide that if you can instruct me on how to do that.

Thanks.

Hey @nykzukowski,

We don’t have access to Cornerstone so we cannot currently check the condition. Please set the user access to Administrator Level.

Thanks.

Whoops, my bad. Should be admin privileges now. Thank you.

Hello @nykzukowski,

I checked your site, it seems that you have not assigned the single layout for the single posts. In case you want different header for the blog post details page I would suggest you please create separate header and assing it for the post page.

Please purge all the cache, temporarily deactivate the plugin, and then check it.

Hope it helps
Thanks

Hey,

I don’t think that’s the issue. I have assigned the Post type is Post logic to the header I created for the posts page. The header itself shows up on posts page, but the content is missing. I tried injecting the content manually with {{dc:post:content}} and it still won’t display the content. I have the header showing on the posts page but just need to get the content to actually inject in the page. Thanks.

Here is the post that the header is working on: https://dev.upward-impact.com/seo/insights/uncategorized/how-to-build-a-revenue-driven-seo-roadmap-not-just-a-list-of-keywords/

The content just doesn’t show up.

I have it assigned to all posts:

Since the content won’t load, I tried injecting it with {{dc:post:content}} to no avail:

on the front end, the header is loading correctly for the posts page, but the post/sidebar aren’t loading.

The “Insights” page is my posts page. I have the default layout set to No Container - Header, Footer by default, which doesn’t display the content on the front end. I thought maybe trying it as Layout - Content Left / Sidebar Right would work and it still didn’t output the content on the front end.

Hey @nykzukowski,

It should be “{{dc:post:the_content}}” dynamic content.

By the way, you should look for the Post prefab elements first to avoid any issues like what you have right now.

Thanks.

Ah gotcha. My bad. Thanks for clarifying that. Got it.

Anytime, @nykzukowski.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.