Title: PHP Function manual insert not working?  
Last modified: August 30, 2016

---

# PHP Function manual insert not working?  

 *  Resolved [danworld](https://wordpress.org/support/users/danworld/)
 * (@danworld)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/)
 * My php skill is still pretty basic. I may be missing something obvious.
 * I’m trying to insert the statement but it isn’t working for me:
    if ( function_exists(‘
   echo_tptn_post_count’ ) ) echo_tptn_post_count();   
 * I tested and function_exists() is true.
 * But when I use the statement, nothing appears. If I try to use the statement 
   with already working php in a hook, all the php in that hook is not displayed.
 * This works in the hook:
    <?php the_category(‘ ‘); the_author_posts_link(); the_tags(‘
   Tags ‘, ‘ ‘, ” ); ?>
 * This doesn’t work, there is no output from any of the code in this hook:
    <?php
   the_category(‘ ‘); the_author_posts_link(); the_tags( ‘Tags ‘, ‘ ‘, ” ); if (
   function_exists ( ‘echo_tptn_post_count’ ) ) echo_tptn_post_count();  ?>
 * My php skill is still pretty basic. I may be missing something obvious.
 * I’m using the Genesis framework. And Genesis Simple Hooks plugin.
 * If I use the setting to just automatically add the counters to posts, the counter
   does show up that way.
 * Thank you.
 * [https://wordpress.org/plugins/top-10/](https://wordpress.org/plugins/top-10/)

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

 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358449)
 * Can you tell me what happens if you toggle the option:
    “Always display latest
   post count”
 *  Thread Starter [danworld](https://wordpress.org/support/users/danworld/)
 * (@danworld)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358464)
 * Thanks for the quick reply.
 * But playing with that option doesn’t seem to affect this problem.
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358469)
 * Can you please try this. It taps an internal function.
 *     ```
       <?php
       echo get_tptn_post_count( get_the_ID(), get_current_blog_id() );
   
       ?>
       ```
   
 *  Thread Starter [danworld](https://wordpress.org/support/users/danworld/)
 * (@danworld)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358477)
 * Ok, that worked! Much appreciated.
 * And now, the original code also works. I wonder why?
 * Which code should I use? Do I have to worry about something not working again
   in the future?
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358485)
 * You should continue using the “echo_tptn_post_count” code if that is working.
 * It’s strange that it didn’t work once and is suddenly working. But, at least 
   it works now 🙂

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

The topic ‘PHP Function manual insert not working?  ’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WebberZone](https://wordpress.org/support/users/webberzone/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/php-function-manual-insert-not-working/#post-6358485)
 * Status: resolved