Title: How to call a custom function
Last modified: August 19, 2016

---

# How to call a custom function

 *  Resolved [francisjeffy](https://wordpress.org/support/users/francisjeffy/)
 * (@francisjeffy)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/how-to-call-a-custom-function/)
 * Hi all,
 * This is my scenario
 * I have a wordpress site which has a contact details page. And this page displays
   contact details of people from another database and it is all working fine.
 * The issue
 * When i click on a contact name I need to show the details of the contact. In 
   normal php I could put the contact name in an anchor tag and in href i could 
   give something like href=”contact-details/id/2″. And it will go to that file 
   and return the details. How do i do that in wordpress. I can write a function
   in function.phpp of my theme, but i dont know how to call it in the anchor tag
   or on click.
 * Any help will be good
    Thanks in advance guys Jeffy

Viewing 1 replies (of 1 total)

 *  Thread Starter [francisjeffy](https://wordpress.org/support/users/francisjeffy/)
 * (@francisjeffy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/how-to-call-a-custom-function/#post-1979562)
 * this is solved, all i did was created a page to display the contacts, and created
   a template for that page and all the code to display the data was added in that
   template !!

Viewing 1 replies (of 1 total)

The topic ‘How to call a custom function’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [hacks](https://wordpress.org/support/topic-tag/hacks/)
 * [wordpress functions](https://wordpress.org/support/topic-tag/wordpress-functions/)

 * 1 reply
 * 1 participant
 * Last reply from: [francisjeffy](https://wordpress.org/support/users/francisjeffy/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/how-to-call-a-custom-function/#post-1979562)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
