• 0
Sign in to follow this  
Followers 0

Custom Post Types - Display Comments Section


Question

Posted · Report post

I've added the Comments section to a CTP template. I've "allowed" comments and they are allowed in the CTP's settings. I can't get them to display, using PageLines, but they display just fine, using the TwentyTwelve theme.

 

I saw similar posts, but none offered a resolution, for me. Any help (or reference to an existing solution) would be greatly appreciated.

 

[attachment=1829:pagelines-ctp-comments.png]

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

Danny,

This issue is solved. Apparently, PageLines does not like special characters in the slugs of CTPs. I removed/renamed and everything appears to be working. Thanks for your time.

 

Ed

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

Can you provide a link to the site in question please.

Also, can you take a screenshot of both your Page Template section area and your Content Area section area (basically, a full screenshot of the image you provided above).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Danny,

Before I go through all of that, I think I may have found the issue. What I've found is that, when I add the Comments section, and it says "Section Order Saved!", if I refresh the page, the Comments section is gone. It's like it isn't really saving the settings.

 

Firefox

Chrome

Internet Explorer

 

All have the same results.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for informing us the issue has been resolved. As far as I am aware you can't use special characters in custom post types (could be wrong).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Oh, you can use them (hyphens/dashes). You just can't use them with PageLines.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I haven't used PageLines Framework extensively in while, but I do remember creating multiple custom post types like so:

 

pc-games

ps4-games

xbox-games

 

And had no issues whatsoever. Also, not sure why the custom post type name would effect the visibility of the comments section on the CPTs? The issue may be related to how you're creating the CPTs. Also, you mention that its as though the settings are saving, this implies that it could be a cache issue or related to a plugin. I would disable all active plugins and see if this resolves your issue.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It wasn't really affecting the visibility. It was affecting the save process, somehow. Actually, it wasn't even the save process, because once I changed the slug, the previously saved sections appeared on the Drag & Drop template (the ones that looked as though they weren't being saved). Beyond that, I'm clueless as to why things would work that way.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0