All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: include this in a plugin  (Read 5570 times)

0 Members and 1 Guest are viewing this topic.

Offline Vendetta

  • Newbie
  • *
  • Posts: 19
    • View Profile
include this in a plugin
« on: 07 December 2006, 16:14 »
I would call this script in a plugin, now it's include in the wp loop...what can i do ?


Code: [Select]
<?php 
 $clicks 
get_post_meta ($post->ID'clicks'TRUE );
 
 if (
$clicks ) {

           echo 
$clicks " clicks";

   } else {
echo " 0 clicks";

?>

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: include this in a plugin
« Reply #1 on: 07 December 2006, 16:18 »
I don't really get your question.

The code you posted is to display the clicks based on the post meta.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Vendetta

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: include this in a plugin
« Reply #2 on: 07 December 2006, 16:34 »
Yes, and it works...but i would create a function, is possible ? Help me

Offline Vendetta

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: include this in a plugin
« Reply #3 on: 07 December 2006, 21:49 »
ok, i've solved

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: include this in a plugin
« Reply #4 on: 08 December 2006, 00:59 »
Solved? Glad it works... :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers