Forums

Custom page - add content via php? (3 posts)

  1. aeon365
    Member
    Posted 1 month ago #

    Hi guys,
    I am running thesis 1.51 and I have a problem establishing a custom homepage (to implement a differnt sidebar).

    So far:
    I call up the homepage like this:

    function custom_sidebar_01() {
    if (is_Home() || is_front_page() || is_page('14'))  {
    ?>
    <div id="content">
    ...

    Later I get the sidebar like this:
    <?php thesis_sidebar_2(); ?>

    Now: how would I get the regular content via a php-function into my custom template? I have the home page saved as a static page already, so the content must be stored in the db somewhere.

    On my static home page, the divs are:
    content_box
    content
    post-14 class: post_box top
    format_text

    Thanks for any help!

  2. pboosten
    Member
    Posted 1 month ago #

    you would have to use the_content(). (don't forget, it has to be in the loop).

    Peter

  3. aeon365
    Member
    Posted 1 month ago #

    My homepage is static - so there are no posts I can point to.
    I also dont really know "where" to get the content. I mean, I know the page name of my old homepage. But how can I call the text that is saved for that page?

Reply

You must log in to post.

About this Topic