When in WordPress theme appearance editor, certain pages have a neat titles displayed in the right hand list for your theme files.For example page.php shows as “Page Template”. This is clean and easily read.
Is there any comment syntax that WordPress uses to give these titles for my custom page template?
For example, my single-video.php page could be “Video Page Template”.
Yes you can. Make sure your page opens with something like:
In this case the name of the file in your file overview (while in your appearance editor): Text & Image Page Template
I don’t think so. The reason being that
single-{type}
pages are not essentially a required part of WordPress Template files, where aspage.php
is as it is used to for all static WordPress pages.So it makes sense that WordPress people set a neat title for
page.php
and leftsingle-{type}
pages unattended. Also, type ofsingle-{type}
pages are user defined and subject to variation; where aspage.php
templates are not.You may refer this page from WordPress Codex for more information
Yes, you need to provide a proper formatted URL
(permalink)
to wordpress Like either you want adash (-)
ORForward Slash (/)
OR whatever you want.For this Go to
Admin Panel > Appearance > Permalinks
, here you can see the different styles of permalinks.You can create your ownpermalink structure
too.Find the attachment for your help.