A Difficult problems with WordPress url and displaying contents

Need help…!
Hello,
I have created a plugin named ‘Feather’ in which any user can create a group.
For this, I have created table to store the group informationS. Its structure is given below:

(
    Id bigint(20) AUTO_INCREMENT,
    PRIMARY KEY(Id),
    creator_id bigint(20),
    name varchar(100),
    description longtext,
    date_created datetime
)

Now, I am displaying this groups in my custom template page name= “Display” page
using ‘display_my_groups’ function.
Inside display_my_groups function i have the following code enclosed:

    $groupLists=my_groups_list(); /* my_groups_list() function returns array which contain the group ids */
    foreach($groupLists as $each)
    {
        echo '<li>';
        echo ' <a href="http://127.0.0.1:4001/wordpress/display/'.group_name($each["group_id"]).'" >'.group_name($each["group_id"]).'</a>'; 
        echo '</li>';               
    }

The other functions are:
group_name() function takes the group id as parameter and returns the name of the group
group_description() function takes the group id as parameter and returns the group description

I have created only two groups and the output is shown in the attached screen shots..
Image showing the UI output and url

Image showing the view source page

The problem is i want to click on the group’s name so that it will take me to other page ( url will be same as shown in screenshot) to show me more details(like group description, date of creation etc) about the group..
Thank you in advance..

Please answer try to answer this question as I’m stuck in this part..

Read more here: A Difficult problems with WordPress url and displaying contents

Leave a Reply

Your email address will not be published. Required fields are marked *