I’m wanting to set a single post as my homepage.
I have a photographer’s site.
There are a few galleries (weddings, portraits etc). Each gallery is a wordpress post with attached images.
The post itself has no content apart from the attached images and I then use the wordpress shortcode to display the attachments in a formatted manner.
My main menu include links to these single post “galleries”.
This works well except I also want the home page to also be a gallery. I should add that the gallery posts are styled very differently to the static pages I also have (about, contact etc).
Basically I want to set the home page to be a single post. Now I realise this is not possible out of the box and so I need to take extra steps.
I suppose I need to create a page template that matches single.php and use that for the homepage?
I was wondering what the most elegant solution here might be.
Not sure if it is the most elegant way but the easiest is probably to create a shortcode that displays a single page, and then set that page to display as the front page.
e.g. http://wordpress.org/extend/plugins/post-content-shortcodes/
I believe your on the right track, my suggestion is to create a custom Paga Template like this for twenty ten:
Create a file “my_template.php” in your twenty ten themes folder (the file name is up to you)
Paste this into my_template.php:
Save this file and go to your wordpress admin site.
Then create a new page, write a heading, DO NOT fill out anything else in the edit box.
Then (IMPORTANT) on the right sidebar menubox named “Page Attributes” chose the page template “Gallery Homepage” (if you cant see this menubox you need to activate it through the screen options tab at the top of the page).
Go to you options and select you gallery homepage to your default homepage 🙂
Is this does not work, give me some feedback and more information about the theme you are using.