Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Creating a Comment Counter in Byline


  #1  
Old Jun 2, 2009, 07:31 PM
Jcasteli's Avatar
Jcasteli
 
15 posts · Jun 2009
Right now, Hoboken, NJ
How might I create a comment counter in the Byline?

Example:

Comments (6)

And in addition have the the text link directly to the comment section.

Thank you.

www.twobackpackers.com
  #2  
Old Jun 4, 2009, 02:56 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
See Theme Options -> Post / Page Info Items

"Post / Page Info Items" are the little pieces of informational text and/or links that you can put above or below each post or page, i.e. a comments link with amount of comments
  #3  
Old Jun 7, 2009, 05:44 PM
Jcasteli's Avatar
Jcasteli
 
15 posts · Jun 2009
Right now, Hoboken, NJ
Am I able to simply count the number of total comments associated to a post and place that in the byline, or do I need to activate a plug-in that counts the comments? I am sorry, I don't think my earlier question was clear. I just don't know how to make it count comments. I see your two examples under Post/Page Info Items, but they don't just count the comments.

Example: %comments('Leave your comment', 'One comment so far', '% people had their say - chime in!', 'Sorry, but comments are closed')%
Example 2: %comments('Comments', 'Comments (1)', 'Comments (%)', 'dontshow')%

Looking to create this:

| Comments (6) |
  #4  
Old Jun 8, 2009, 02:30 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
RTM - from the ATO->Post/Page Info Items->Post Info Items documentation
------------------
%comments('No comments', '1 comment', '% comments', 'Comments closed')% - Displays a link to the comment section of the post. The link text depends on the comment count & status (open/closed).

When using this item, provide 4 text strings for the 4 possible comment states:

Replace 'No Comments' with your link text for posts that have no comments yet

Replace '1 comment' with your text for posts with 1 comment

Replace '% comments' with your text for posts with 2 or more comments. The % (percent) character will be replaced with the comment count. Use that character in your own text, too, unless you do not want to display the comment count.

Replace 'Comments closed' with your text for posts where comments are closed. Replace 'Comments closed' with 'dontshow' to display nothing if comments are closed (instead of displaying something like 'Comments closed')
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 8, 2009, 04:05 PM
Jcasteli's Avatar
Jcasteli
 
15 posts · Jun 2009
Right now, Hoboken, NJ
Yes, I have read the examples, but was looking to just do a simple Comment count. So, if I understand how you want me to do this I would type the following correct?

Posted by <strong>%author-linked%</strong> in <strong>%categories-linked(', ')% </strong> on <image(date.gif)><em>%date('F jS, Y')%</em> %comments('% Comments', '% Comments', '% Comments', '% Comments')%

I always want the results of:

% Comments


% = whatever number of comments exists.
  #6  
Old Jun 8, 2009, 04:49 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The % won't work for the first two so you will need this

'Posted by <strong>%author-linked%</strong> in <strong>%categories-linked(', ')% </strong> on <image(date.gif)><em>%date('F jS, Y')%</em> %comments('0 Comments', '1 Comments', '% Comments', '% Comments')% '
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
byline, comments



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert Gravatar into Byline? vsamigo Post-Kicker, -Byline & -Footer 1 Jul 15, 2009 05:02 PM
[SOLVED] Where is the Kicker and Byline? beallmansion Post-Kicker, -Byline & -Footer 3 Jun 16, 2009 07:46 PM
Byline link opening in new window ronald73 Post-Kicker, -Byline & -Footer 2 May 6, 2009 02:55 AM
External Link in Byline Date cdevenish Post-Kicker, -Byline & -Footer 0 Mar 27, 2009 02:50 PM
BYLINE Customization Darren Sproat Post-Kicker, -Byline & -Footer 0 Mar 21, 2009 05:38 PM


All times are GMT -6. The time now is 11:44 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.