Link to home
Start Free TrialLog in
Avatar of SheppardDigital
SheppardDigital

asked on

Wordpress, how to add link to sites menu

Hi,

I'm creating my first wordpress plugin. I've created the admin side of things without any problem. However now I need to make the plugin accessible on the frontend of the website.

I've tried searching Google but I'm not really getting an concrete answers on where I start.

I need to create a menu item in the sites main menu which links to the plugin so I can display various information on that page. The only information I can find so far would insinuate that I need to create a shortcode, create a page and add the shortcode into the page. Is this really the correct way to do this?

I have a wordpress book on my desk, it's been a great help when doing the backend of the plugin, but doesn't give me any information at all about integrating with the frontend of the website.

For reference, if it helps, the plugin creates a few custom database tables which will hold the rates of different members of staff. The backend allows an administrator to filter and edit the rates for different job roles, while also providing a CSV import to be able to populate the database. What I need to do now is display this information on it's own page of the website.
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Is this really the correct way to do this?

Correct is a strong word, but yes.  This is a very common way of returning content because it gives the end user control over where the content appears and you can place other content above and below the shortcode.

What other technique would you prefer?
ASKER CERTIFIED SOLUTION
Avatar of SheppardDigital
SheppardDigital

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SheppardDigital
SheppardDigital

ASKER

Found a way to do this.