what plugin are you using for this?
Hello,
Im coding a plugin myself.
So this is a custom post type? Once you create a CPT, be sure to resave your permalinks.
Well Im creating menu item with submenu items. These are custom. And that leads to wp-admin/admin.php?page=pagename but now I want to create a knowledgebase for the plugin but creating a specific page for every article is alot of work. So im looking for a way to like use wp-admin/admin.php?page=knowledgebase&article=article1 and it will pick article1 from my folder with html files. I know how to do the 2md part but when entering that in my url ot says im not allowed to access that page.
you can’t use wp-admin in a publicly facing menu because wp-admin is not available to non-logged in users. If you’ve created a CPT named “knowledgebase”, then a post of that type would be /knowledgebase/slug-for-your-post.
but I get the idea that you’ve got a directory of .html files, so mabye this isn’t a custom post type, but a simple template, “knoweldgebase”, in which you’d parse the GET parms to figure out which HTML file in include, so a post would be “/knowledgebase?kb=abc”, though I think doing a bit of PHP magic to avoid use a GET parm and using something more like a “regular” URL would be best.
dunno, without getting too deeply into your thinking and coding.
Also, have you considered using either a Wiki as the base site or a wiki plugin for WP for this?
Hi, I may have confused u. This is infact in the admin panel. Its a onowledgebase for site admins woth basic tutorials and such. Of needed I could provide my code.
Oh, ok. This plugin is out of date, but the code may be helpful for you: https://ww.wp.xz.cn/plugins/back-end-instructions/