• Hi all,

    OK so here’s what I’m trying to do:

    I have a website that I turned into a wordpress theme. I want to use the pages function for wordpress, and On these pages I want to have page content in my main column, and posts that apply to a specific category in my side column. How can I do this? As it stands, my side column is always overriden by page content along with my main content.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Not sure I understand your question. If you are trying to use wordpress as a content management system (cms) what I suggest is that you use two plugins, both of which appear to work with wordpress 2.0

    first use the static home page plug in:
    https://semiologic.com/software/static-front/
    This requires you to create a page called Home. You can change the name of the file once you create it because the slug won’t change when you later change the title.

    Then use the page_fold_menu plug in:
    https://jpmcc.blogdns.org/index.php/software/fold_page_menus/

    This requires you to make a minor edit to the sidebar.php file.

    If that doesn’t answer your question, post a clarification.

    Thread Starter public_radio

    (@public_radio)

    Oh sure, sorry I wasn’t clear…

    OK, imagine that I have a Web site with a sidebar that always has news in it. So really, the whole site is powered by wordpress, but there’s only a sidebar that’s “The Blog”. This is included on most pages. The main section is static content.

    So what I want to know is, how do I use the pages feature to serve up my static content, and still have my blog show up on the side? For me, the page overrides all other posts in both the main section and the blog sidebar. Does that make sense?

    Thread Starter public_radio

    (@public_radio)

    bump

    I think the easiest way to put the posts in the sidebar, would be to “steel” the contents of the loop for categories ( in the default theme this is archive.php, an put that loop in the sidebar.php.

    It will certainly mean some tweaking of the code for the index and and Pages templates too. ( I’m not that strong on PHP, but I think this may trigger some thoughts ??

    Thread Starter public_radio

    (@public_radio)

    I hear what you’re saying. I did pull that from the archive.php in the default theme, and the page data still overwrote it.

    The thing is, this is a site for a friend, and I want her to be able to edit her pages through WordPress. So the ‘pages’ function is useful in this case, but I still want posts to show up on these pages. I’m pretty strong on PHP but I can’t seem to figure this out.

    Thread Starter public_radio

    (@public_radio)

    OK, I’ve made some progress by using the get_archives function. I can get my archives to show up on the sidebar regardless of page; however, It’s only listing titles. I need it to list out a header, and the content of the post, like a normal blog.

    So: how do i use get_archives to show full posts? is this possible?

    So it didn’t work with normal The Loop</A> thingy to show the posts.
    <?php if ( $posts ) : foreach ( $posts as $post ) : start_wp(); ?>

    On another note, I may have misunderstood something here, but how do you get room for a Page page in the main area *and* posts in the sidebar. Seems a bit crowded to me.

    Maybe this will help:
    https://codex.www.ads-software.com/Template_Tags/get_posts

    Look for “Access all post data.”

    Maybe this will help:
    https://codex.www.ads-software.com/Template_Tags/get_posts

    Look for “Access all post data.”

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Show certain posts, regardless of page’ is closed to new replies.