Title: Post Count Hack
Last modified: August 18, 2016

---

# Post Count Hack

 *  [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/)
 * Why when I put:
    <?php get_post_count(); ?> I get an error??? [http://erica.purplekisses.org](http://erica.purplekisses.org)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88463)
 * I can’t see the error on your page.
    Are you using a plugin ?
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88464)
 * I took it out, will put it again…
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88465)
 * Fatal error: Call to undefined function: get_post_count() in /home/pk/public_html/
   erica/index.php on line 147
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88466)
 * I have another hack question also…
    [http://www.gravatar.com/implement.php#section_2_2](http://www.gravatar.com/implement.php#section_2_2)
   when using that…. where do you put the php? In wp-comments.php?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88467)
 * post_count – that’s not a function that comes along built in. Have you uploaded
   and activated a plugin ?
    Gravatar – I would think so, never used it myself. 
   Find the part of the code that displays comments, and put it somewhere then move
   it around to suit.
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88469)
 * yes, I have uploaded and activated it…
    I got it from here: [http://mtdewvirus.com/wp-hacks/](http://mtdewvirus.com/wp-hacks/)
   ok, I will try that with the gravatar…
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88470)
 * The upload of the plugin could have gone wrong..delete it and reupload, making
   sure it goes up as ASCII, not binary ?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Post Count Hack’ is closed to new replies.

 * 7 replies
 * 2 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/post-count-hack/#post-88470)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
