Jump to content
Sign in to follow this  
cbitner

Comments on Posts are gone

Recommended Posts

cbitner

For the last little while I can't seem to get "leave a response" to appear on my posts. I did make it possible to leave comments on PAGES by editing a line of _posts.php and they are showing up great. However, my blog post pages comments are not working. Even if I click on leave a reply on the blog excerpt, it just sends me into the full blog post but there is no comment box that shows up. Yes, comments are enabled on the post. I am using iBlog Pro 4 - any help is appreciated. I have tried every menu toggle and nothing makes it appear.

Share this post


Link to post
Share on other sites
wp101

Hey Cory, Did this problem occur after you made the change in the _posts.php file? Can you specify the exact change you made and have you tried reverting back to the original file to see if it works then?

Share this post


Link to post
Share on other sites
cbitner

OK - did what you said (I reverted back to the original _posts.php file), and the comments section once again appears on Posts. (Thanks - I missed the obviousness of that). However, now it's back to the functionality of just displaying comments on posts and not on Pages. So, Here's the code that I replaced: <?php if(!VPRO || !is_page() || (is_page() && pagelines('pagecomments', $post->ID))) include(THEME_LIB.'/_commentsform.php');?> And here's the code I replaced it with to make pages have comments: <?php if(is_page() || pagelines('pagecomments', $post->ID)) include(THEME_LIB.'/_commentsform.php');?> Is there something I can do to make this leave comments on both PAGES and POSTS when I select it per post. (This is on the iBlogPro Theme by the way) Thanks for your suggestion and for anyone who can help accomplish what I am looking for.

Share this post


Link to post
Share on other sites
cmunns

It should work if you just add `|| is_single()` to the conditional

Share this post


Link to post
Share on other sites
cbitner

OK - that worked. So for future users wanting to add comments to pages in iBlogPro4 and to retain comments on the posts: (1) Edit the iBlogPro theme file called: _posts.php (2) Find the following line: <?php if(!VPRO || !is_page() || (is_page() && pagelines('pagecomments', $post->ID))) include(THEME_LIB.'/_commentsform.php');?> (3) Replace it with this line: <?php if(is_page() || is_single() || pagelines('pagecomments', $post->ID)) include(THEME_LIB.'/_commentsform.php');?> All will work properly.

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  

×