simplebits / Pears

http://pea.rs
GNU General Public License v2.0
1.4k stars 162 forks source link

Pages don't display HTML or CSS fields #15

Open andrewheiss opened 12 years ago

andrewheiss commented 12 years ago

Pages (such as a custom front page, like the welcome page at http://pea.rs) do not display the content of the custom HTML or CSS fields because they don't use loop-single.php as their template.

Is there a way to force a page to use the loop-single.php template so we can have fancy front pages like the example pea.rs site? How do they do it?

scotcrop commented 12 years ago

The code that handles showing the HTML and CSS on posts could be added to loop-page.php as well.

andrewheiss commented 12 years ago

Is there a more WordPress-y way to handle that though, without duplicating the code on multiple templates? How's Dan doing it at http://pea.rs?

scotcrop commented 12 years ago

A lot of the template could be stripped. Pages will look for a few template file name variations and end up at page.php and then index.php, while posts do a similar search and end up at post.php and then index.php. See http://codex.wordpress.org/Template_Hierarchy

You could probably get by with just having an index.php that handled everything. I don't think the Twenty Ten template Dan's using has been modified beyond a few parts but I don't think his goal was to make a brand new template from scratch as much as it was to quickly put something together to get the result he was after.

I think in the case of http://pea.rs it is possibly a hacked page of sorts that shows the intro content and is hardwired to work that way.

annarobertson commented 12 years ago

Any progress on this issue? Any idea how http://pea.rs was done?

clupprich commented 12 years ago

Any (good) solutions on that one? Anyone knows of a fork which solves that solution?