Are page/post IDs unique across a whole network?

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.

Read More

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

Related posts

Leave a Reply

3 comments

  1. 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.