Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   PHP to call for comments total in Content Slideshow (http://forum.bytesforall.com/showthread.php?t=20551)

NoisyDvL5 Jun 25, 2013 07:36 PM

PHP to call for comments total in Content Slideshow
 
This is likely one of those naive questions with an easy answer.

I'm playing around with including a featured content slider in my sandbox site ( http://itsalltrue.net/exp/ WP 3.5.2, Atahualpa 3.7.12) and I'd like for it to display the title and total comments instead of the title & an excerpt.

<a href="#main-post-<?php echo $counting; ?>" title="<?php the_title(); ?>">
<?php echo cut_content_feat(get_the_title(), 100, ""); ?><br />
<?php $excerpt = get_the_excerpt();?>
<p><?php echo cut_content_feat($excerpt, 100, "..."); ?> </p>

</a>

I've identified that I need to remove the bolded section from plugin file to eliminate the excerpt, but I've combed over comments.php & post parts.php in atahualpa and I can't determine the PHP call for the comments total. Am I missing something obvious?

Thanks!

juggledad Jun 26, 2013 03:06 AM

this is where you need to dig into the wordpress codex (codex.wordpress.org' and see if there is a function you can use.

NoisyDvL5 Jun 27, 2013 11:19 PM

I found the code in the codex, but couldn't get it to return anything but zeroes. We changed the design so there isn't room for the comments number anymore, but I still wanted to thank you for the help!


All times are GMT -6. The time now is 10:44 PM.

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