How can I create a function to use inside a while loop. Like the_title() or the_meta() in WordPress?
A simple sample is enough.
How can I create a function to use inside a while loop. Like the_title()
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you could use globals. For example, assuming you have a global array, here is something that does that (obviously you need to add more robustness such a error checking. plus how you would use this on wordpress would depend on what you are doing)