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 » Comments, trackbacks & pings »

PHP to call for comments total in Content Slideshow


  #1  
Old Jun 25, 2013, 07:36 PM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
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!

Last edited by NoisyDvL5; Jun 25, 2013 at 07:38 PM.
  #2  
Old Jun 26, 2013, 03:06 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this is where you need to dig into the wordpress codex (codex.wordpress.org' and see if there is a function you can use.
  #3  
Old Jun 27, 2013, 11:19 PM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
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!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone using W3 Total Cache or CDN Tools with ATA? lhanft Plugins & Atahualpa 2 Dec 12, 2010 11:29 AM
Creative ideas for d13 Slideshow or other Slideshow theadventurebite Plugins & Atahualpa 0 Jun 16, 2010 02:30 AM
[SOLVED] WP Content Slideshow thebookwright Plugins & Atahualpa 16 Nov 21, 2009 02:26 AM
Total novice! What do I do after I download Atahualpa? rachkitty New Versions, & Updating 4 May 16, 2009 06:58 PM


All times are GMT -6. The time now is 04:20 AM.


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