Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jun 2, 2009, 06: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, 01:56 PM
Flynn's Avatar
Flynn
 
3,730 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, 04: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, 01:30 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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')
  #5  
Old Jun 8, 2009, 03: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, 03:49 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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')% '

Bookmarks

Tags
byline, comments

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 01:57 AM.


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