Forums

How to build different "sections" on a WP website (7 posts)

  1. FabioBulfoni
    Member
    Posted 2 years ago #

    FNRmedia is a free information service on themes of Defense, Security and International Politics.
    The service is free and driven by voluteers.
    Content is given under a Creative Commons License

    We use WP, updated to 2.2.3, the theme is Plaintext, modified as we needeed.

    Credits are left everywhere, footer has reference to WP, the theme and the author.

    Our website has got its final look and we ar happy with functionality and results.

    Now, we need to built separate sections of the website, to add new services, that has to be kept separated.
    One section will be to contained "unsecretated" dossiers and the other will contain only topics about the main events of Italian modern history.

    The look of the page have to be the same for the whole website, but any new section need its own content for the sidebars, which will be different fron the one in the frontpage.

    Categories will have to be different and many of the "general" content of frontpage's sidebars would be removed.

    Is there any viable solution to solve our need.

    As preface it is to be remembered that we do not have much knowledge of programming.
    But if things are easy, then we can maange to alter some code, as we did for the building of our website.

    We thank you all for the attention and for the possible solutions...

    With best regards

    Fabio Bulfoni
    (Administrator of FNRmedia)

  2. Root
    Member
    Posted 2 years ago #

    What you need here in WP terms is pretty elementary. But it does need a degree of hackery from a php progammer. There plenty to be found in these parts. :)

  3. FabioBulfoni
    Member
    Posted 2 years ago #

    Thank you, Root.
    Can you just tell me how it could be the said hackery?
    It is worth a try, having available a good back-up.

    Then, just to know, if we rename index.php into something else (i.e. default.php), then could we be on the safe path?

    Our DB space is split by default in 5 spaces, of which we are using only the first.

    We could proceed with 2 new installs, but then we will have 2 new different names and we will loose the connection between one and the other at the level of counters.
    Counters are a very important tool for us, seen the kind of issues that we handle in our website, we need to have all counts in one single counter.

    In the Italian Wordpress website they suggested us to create new pages, copying and renaming index.php and then to follow the loop.
    But they also warned that it would not be either easy or fast.
    Another suggestion is to convert everything to WPmu.

    So, the big questionmark is still around us...

    FB

  4. moshu
    Member
    Posted 2 years ago #

    Then, just to know, if we rename index.php into something else (i.e. default.php), then could we be on the safe path?
    If you are talking about the index file of WP - NO, you cannot rename it.

    Pages are not meant to display multiple posts, give up that idea; it would cause only headache and no results.

    What you described could be solved with multiple WP installations... although if you have that counter requirement, I don't see it how. (Actually, tools like google analytics give a better picture of the preferences regarding different sections, if you do NOt have all the counting in one place - just my 2 cents).

  5. Root
    Member
    Posted 2 years ago #

    MU is not needed here. Nor are multiple installs. The php hackery would be mainly if conditionals. eg If it is category Roman Empire do such and such (eg include sidebar 3). So just look up if conditionals on a php site and hack away. A test blog locally would be good so you can practice. :)
    If you get stuck you are welcome to e mail me on atthe404 at gmail dot com

  6. FabioBulfoni
    Member
    Posted 2 years ago #

    Thanks to all.
    Well, after looking here and there it seems to me that we just need to change the content of sidebars when a certain link at "home" is selected.
    And, also, to replace the categories "tree" under that selection.
    Of course, all post to be shown and searched will have to be only those belonging to the new categories.
    Template header and footer would stay the same for any section...

    I wonder if some conditional coding or dynamic widget would work.
    Or, maybe, would it be good to operate on the HTML of the shown "home" and to use the modified as static page?
    But, then, how to link to WP functionality?

    FB

  7. Root
    Member
    Posted 2 years ago #

    I would put my if conditionals in the sidebar.

Topic Closed

This topic has been closed to new replies.

About this Topic