How to display plugin script… (Simple Profile Page)
-
Hi folks!
I noticed a lot of people asking for a simple profile page for every user, so I’m trying to make a plugin. It will be easy using get_author_meta or simple SQL queries, but I literally just learned PHP today. So forgive me if this is a stupid question:
The script output (the profile) should appear in any theme’s main content area (where the loop, page content or search results display). How do I make the plugin script display there? I want to be able to link to a URL (maybe https://example.com/profile/user/3, for example), which would automatically run examplePlugin.php and display that script’s output in the theme’s main content area.
I read all the codex documentation about creating plugins, but couldn’t figure this out. Should be using hooks somehow?
- The topic ‘How to display plugin script… (Simple Profile Page)’ is closed to new replies.