Pages don't display HTML or CSS fields #15

Open
andrewheiss opened this Issue Feb 8, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@andrewheiss

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

This comment has been minimized.

Show comment Hide comment
@scotcrop

scotcrop Feb 8, 2012

Contributor

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

Contributor

scotcrop commented Feb 8, 2012

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

@andrewheiss

This comment has been minimized.

Show comment Hide comment
@andrewheiss

andrewheiss Feb 8, 2012

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?

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

This comment has been minimized.

Show comment Hide comment
@scotcrop

scotcrop Feb 8, 2012

Contributor

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.

Contributor

scotcrop commented Feb 8, 2012

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

This comment has been minimized.

Show comment Hide comment
@annarobertson

annarobertson Sep 19, 2012

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

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

@clupprich

This comment has been minimized.

Show comment Hide comment
@clupprich

clupprich Nov 5, 2012

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment