Page Templates
Some of what a tube site needs is not a WordPress archive: a page listing every category with its cover image, or a form for visitors to submit a video. In FamousTube these are page templates, applied to an ordinary page.
FamousTube creates a page for each of them when you activate it, with the template already assigned, so in normal use there is nothing to create. The page's own content is ignored: the template renders the listing. The title and the URL are yours to choose, and the title is what appears as the heading.
1. Managing them from the Theme Options
Open WP-Script → Theme Options. The Pages tab lists the Submit a Video and Profile pages (and the legal pages), the Videos tab the Categories, Tags and Actors pages. For each one you can:
- Choose the page that plays the role. Only the pages using the right template are offered, since any other page would not show the listing. When another page takes the role, the menu links to the old one follow.
- Create it again with the Create it button, when the page was deleted. Create the missing pages creates them all at once.
- Clean up duplicates. When other pages use the same template, they are listed under the field with a Move to trash link.
- Change its slug. The old URL is redirected (301) to the new one, so search engines and visitors keep finding the page.
To rename a page, edit its title in Pages: the theme finds its pages by id, so a new title never breaks anything or creates a duplicate.
2. Categories
Lists your video categories as a grid of cards, 60 per page, then paginates.
Each card uses the image set on the category itself, at Posts → Categories, in the Image field. When a category has no image, the card falls back to the thumbnail of one of its videos, picked at random on each page load, so the grid is never empty while you are still filling it in.
Categories with no published video are left out entirely.
3. Tags
The same grid, for tags, and the same rule: a tag with no video behind it does not appear, so the page never sends a visitor to an empty archive.
4. Actors
Lists your actors with their images. See Actors for how an actor is attached to a video and where the image is set.
5. Submit a Video
Renders the front-end submission form, so visitors can send you videos without an account in WordPress admin. See Video Submission.
6. Profile
The member's own page, where they find the videos they submitted. It only makes sense on a site where visitors can register, so keep it out of the main menu: members reach it from the account links in the header.
The Main Menu created on activation links to Categories and Tags. Add the Actors page yourself at Appearance → Menus if you want it in the header, as Getting Started walks through.
These templates paginate, and a request past the last page is answered with a
404 on purpose rather than an empty grid. On the default ?p=123 permalink
setting, pagination does not resolve at all. Set
Settings → Permalinks to Post name.
7. Where to go next
- Getting Started sets the site up in order.
- Options covers every theme setting.