I have template file named "page-manga" in my theme folder and my page's named manga too. In that template I have manga reader script running. Manga reader script has own variables. Wordpress permalinks settings now default mode and my URL like this;


When I change permalink settings to postname it doesnt apply to "manga=Kingdom&chapter=001&page=2" part.

How can I fix this?

  • half of the solution depends on how the manga reader script generates those links, you may need to ask this of whomever created it. the other half is adding rewrite rules to handle incoming requests.
    – Milo
    Commented Nov 15, 2014 at 0:09

1 Answer 1


You would probably be better served to not rely on the page-pagename.php method of applying custom templates to a page, and be more deliberate with assigning the template.

At the top of your page-manga.php file, include a template reference:

Template Name: Manga Page

Now on your Manga page, find the Page Attributes metabox and select "Manga Page" from the Templates dropdown. Save/update the page.

This way no matter what permalinks settings you choose, WordPress explicitly knows which template to use for that page.

You can find more information on WordPress templates here: https://developer.wordpress.org/themes/template-files-section/page-template-files/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.