• I’m converting a static HTML5 template into a static WordPress theme WITHOUT POSTS. For most of the pages, the static content on the wordpress page should show in the WYSIWYG editor. One page template has a gallery and will want to take images inserted into the WYSIWYG and put them on the page.

    In sum, I only want to use WordPress as a page content editor and image gallery.

    Questions:
    1: Do I need the loop that asks if there are any posts and keeps inserting them into the page, in this situation or can I skip that?

    2: How do I get the content from the WSYIWYG editor to show on the page (or the content on the page to show in the WSYIWYG editor?) Is this automatic or is that the purpose of the the_content() function?

    3: I have a unique home page, is the best way to handle this by creating a front-page.php template file? If so, what should the template pages folder be named?

    Thanks if you can help! Pol

Viewing 1 replies (of 1 total)
  • 1. No. If you have only pages then you can have the_post() by itself. You don’t need to use the loop – but it’s always advisable to have a fallback if you ever want to have posts on the site.

    2. You’re right with the_content(). That’s what it’s for.

    3. The front-page.php file is the best way to have a home page with a different design.

    Of course, always remember to use a child theme when you’re making changes like this. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Create Custom STATIC Theme without Posts (no blogs or posts)’ is closed to new replies.