theme development - PHP Script on a template page & dealing with URI's

admin2025-06-04  2

I am working building a page within a template which will be a PHP script to do various URL-based things (basically an API).

Creating a page is simple enough, I created page-mypage.php in the template folder, and created a page in the Wordpres front-end with the slug mypage.

This all works, but I am running into this issue

<-- Works, loads the content of page-mypage.php

/ <-- 404 Error

Is there a way to capture all the URI after "/mypage" without generating a 404 error?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749003988a315537.html

最新回复(0)