Forum Replies Created
-
AuthorPosts
-
outsidethebox
Member@carasmo
Thanks for double-checking and confirming it works for you. Your code has the same issue with "more" on my site. What starter theme are you talking about?But still, I haven't made any changes to functions.php or Genesis, the issue just came out of the blue. As for modified date, I removed some code, because it was not the point.
outsidethebox
MemberUpd (can't edit the original post). The question is specifically about the "more" parameter, because the other two work.
February 23, 2015 at 3:25 pm in reply to: How to display number of comments when comments are closed #141920outsidethebox
MemberI'd like to revisit this thread with a solution provided by the support team. Turns out the solution has been in plain sight all the time, just hiding behind reverse implentation logic and poor documentation.
The [POST_COMMENTS] shortcode has a parameter currently documented as follows:
hide_if_off – Disable comment link even if comments is enabled.
The correct usage is hide_if_off="disabled", e.g.
[post_comments zero="No Comments" one="1 Comment" more="% Comments" hide_if_off="disabled"]
With the above code, the number of comments is displayed regardless of whether the comments are closed.
The thread is now resolved!
outsidethebox
MemberHi Gary,
Sometimes you have to do something for a handful of people if they take time to promote your blog. I was thinking of adding HTML/BBCode links separately, but didn't want to expose an additional element the majority of users have no use for.
I didn't take SEO into account, but my old non-Genesis theme had this 'feature', and I don't think it caused any issues, although it's hard to tell for sure.
Thanks for all suggestions. I'll play with the code, but in the end I may abandon the original idea. Sometimes I just get stuck with the 'migrate old features' mindset, and changing the theme helps evaluate their value.
outsidethebox
MemberHi Andrea,
E-mail notification didn't work, so I missed you post. Yes, I want it to link to iteslf. One reason is that it enables you to copy the link text as HTML or BBCode, if you have a browser extension installed.
I have a technical blog, and there's a number of people (myself included) who frequently share links to articles in forums. Say, I'm reading this page and want to post a nice link to your site rather than just an URL. I simply copied the link from your signature using the extension menu and here it is (opens in new tab): Nuts and Bolts Media.
Thanks!
January 4, 2014 at 11:24 am in reply to: How to display number of comments when comments are closed #83182outsidethebox
Member@justcurious
Thanks for responding! While I was waiting, I came pretty much to the same thing as you for the post info, but it's not a complete solution...And I've figured out the bottom part as well, albeit a little differently 🙂
I show the number of comments before they start. This looks logical for all posts.
// Modify comments header text in comments add_filter( 'genesis_title_comments', 'comments_title'); function comments_title() { return __(comments_number( '<h3>Start Discussion</h3> ', '<h3>Comments: 1</h3>', '<h3>Comments: %</h3>' ) , 'genesis' ); }
And then I show the notification after the last comment (where the comment form displays when comments are open). This explains the absence of the comment form.
//* Notify of closed comments add_action( 'genesis_after_comments', 'comments_closed' ); function comments_closed() { if ( is_single() && !comments_open() ) { ?> <div class="comments-closed"> <h4>Comments are closed</h4> </div> <?php } }
Perhaps you'll find this useful.
I'll keep digging, but my php skills come from google :)) I think we'll have to look past shortcodes, as they limit our options. I'm surprised this is not taken into account in the framework, pretty standard stuff.
January 4, 2014 at 7:09 am in reply to: How to display number of comments when comments are closed #83099outsidethebox
Member@justcurious
Care to share the solution? Because I'm just curious about the same thing too 🙂THanks!
-
AuthorPosts