Jonnyauk / Wonderflux

A free, professional Open Source theme framework for WordPress & BuddyPress. Download the latest stable release by clicking on the 'releases' tab. API documentation at http://wonderflux.com/guide or drop by the main site at
http://wonderflux.com
159 stars 46 forks source link

How to make one page template files #60

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I need to make a template file for a single page (called agenda). On regular Wordpress this would be 'page-{slug}.php', so page-agenda.php. This doesn't work on Wonderflux, neither does loop-content-agenda.php. I read the documentation and the other issues on github but I don't understand them. Can you tell me what to do and be really specific about it? Thanks.

Kind regards,

Stef

Jonnyauk commented 8 years ago

@stefvanriet Wonderflux doesn't currently support detecting page slugs in the extended get_template_part internal function, but does fully support the WordPress template hierarchy:

dedicated file (just for a specific page)

Use is_page() in loop-content

page template (re-usable page template)

ghost commented 8 years ago

I copied 'loop-content-page' instead of 'page', that was my mistake. It works now. Thank you for your support.

Kind regards,

Stef