• I’d like to be able to type stuff into wordpress admin, and have it control the content of a single page (but not control the template of that page, just the content)

    Basically set up wordpress as a single page CMS.
    How would I go about doing this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Might need to expound on that with a example.

    Because I was going to say, write no posts and just write pages, use the WordPress Default Theme, just use the Pages Widget, and use the Static Front Page option to set what page you want displayed initially, to vistors.

    Please note, you pretty much have to have a theme, no matter how spartan it might be. See https://www.plaintxt.org

    Thread Starter skibybadoowap

    (@skibybadoowap)

    Hey MichaelH,
    Thanks for replying so fast. As far as what I’m looking for, I’m trying to somehow work around using a wordpress template (if that’s even possible) and use wordpress to display the text it collects in the admin, to an html page.

    Something like:
    <body>
    <wordpress text from page 1>
    </wordpress text from page 1>
    </body>

    Obviously it’s not this easy, but should be a good illustration.

    Even though you may not want to use a theme, you will still need to have at least one template (that’s what WordPress calls it), index.php, in your theme.

    You will want to be come conversant with the Template Hierarchy and Stepping Into Templates.

    Something like this

    <body>
    	<?php
        $aboutpage = get_posts('page_id=2');
        foreach($aboutpage as $post) :
        setup_postdata($post);
        ?>
        <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
        <?php the_content(); ?>
        <?php endforeach; ?>
    </body>

    But if you want to just display some posts in your existing site, learn about The Loop and use the examples here:
    /User:Jalenack/Integrating_Wordpress_into_an_Existing_Site

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hacking wordpress, keeping the CMS, disabling the Theme’ is closed to new replies.