Forums

[resolved] How to call a custom function (2 posts)

  1. francisjeffy
    Member
    Posted 1 year ago #

    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

  2. francisjeffy
    Member
    Posted 1 year ago #

    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 !!

Topic Closed

This topic has been closed to new replies.

About this Topic