• Resolved francisjeffy

    (@francisjeffy)


    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

    (@francisjeffy)

    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.