WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have a page with ID 123, I know my template file page-123.php will be called to render it, but if my theme is used across a network, could a page in a different site also have ID 123?

I assume, if so, that I'll need to sniff $current_site and requiring an alternate template file if it's not the site I'm targeting.

I already assume slugs aren't unique across a network.

share|improve this question
up vote 3 down vote accepted

Nope, they aren't unique.

So yes - you'd have to check current site and do that.... or use a theme with a custom menu?

share|improve this answer

Definitely not unique, sorry... Each blog's tables are prefixed with that site's prefix. You need to check for the current site/blog to make sure.


share|improve this answer

It is in my opinion, the best move here to make a template file and make sure your page (123 or whatever) uses that template.

That way you can use your theme and also share it to the network. An beginner will not mess with the template settings, and you'll avoid accidental formatting of pages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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