Closed ghost closed 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:
is_page('agenda')
to conditionally check for specific page - which is a much simpler way of doing things - see https://developer.wordpress.org/reference/functions/is_page/#user-contributed-notes or https://codex.wordpress.org/Conditional_Tags for more info on this.I copied 'loop-content-page' instead of 'page', that was my mistake. It works now. Thank you for your support.
Kind regards,
Stef
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