• Hello,

    I don’t know the technical term (if there is any) for what I want to do, maybe that is why I have not been able to find a plugin for this.

    Basically, I use WordPress as a CMS by making custom themese for sites like http://www.colab.soe.vt.edu/mpl

    The about text in the right sidebar has been hardcoded by me in the html code for the theme. However, I want to be able to edit it using the admin panel. I think there should be some plugin to do this, since some themes do have a custom text box option which we can edit in the theme.

    If not, will it be easy to write a code/plugin to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Put this code in your sidebar.php

    <?php
    $about_id = 2; // substitute page_id of about for "2"
    $about_page = get_post($about_id);
    echo "<p>$about_page->post_content</p>";
    ?>

    This will display the content of your About page in the sidebar

    Thread Starter jatinst

    (@jatinst)

    Hey,

    Thanks for the reply…

    I know how to put text from a page/post into the sidebar, I wanted some custom text, that can be editable from the sidebar- the about was just an example…

    something which is not a post/page, but is available for edit in the backend..is that possible?

    stvwlf,
    I was looking for something like that code you provided. Thank you!. I put it in the code of my template and it works.. the only problem is that it lost the line breaks… do you know how to fix this? Any one?
    Thanks,
    Ed.

    Jatinst… maybe you should look for the K2 theme and look for a pluggin K2 hookup and see how they do it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom text which can be changed from admin’ is closed to new replies.