• I have read along the support forum for a few hours now and I still seem to be a bit confused. Although I am sure such a topic was questioned and answered before I am hoping someone can help me out here.

    This is what I am hoping to accomplish:

    At the root of the domain, https://www.whatever.com I am looking to display a few sections.

    1. On the right under the header NEWS I want to display NEWS headlines with possibly a short paragraph and a link to read in full.

    2. In the center of the index I want to display a default welcome message but need it be be dynamic so my client can change it when need be.

    3. Below that I want to call random items my client will have available for sale using the ecommerce plugin.

    4. Below that (above the footer) I want simply headline titles to recent blog posts.

    I could careless about archives and other sidebar menu items on the front page of the website.


    So in theory the homepage will contain a few sections that I would like to have dynamically displayed as well as allow to be dynamically edited from the admin panel.

    SECTION 1: NEWS
    SECTION 2: WELCOME with ability to edit like any other post
    SECTION 3: Product display from ecommerce plugin
    SECTION 4: Blog headlines only

    Where I am confused is how to go about setting up WordPress to display all this info properly.
    Should the frontpage be a “PAGE”? If so (or even if not) should all other content besides the offical blog entries be made as “PAGES” as well?
    Would having “NEWS” entries and “BLOG” entries require setting up the site as a multiple blog?

    Please help…. I am not sure if queries is the way to do this or what.

    thank you all for your interest and time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter killputer

    (@killputer)

    Also,
    I suppose I can separate NEWS and BLOG by using a call for category. Not really sure how to, but I suppose if can be done. Like can I edit the homepage sections to display ONLY certain categories and not others? Possibly having the actual BLOG page disregard any display of NEWS posts and vise versa?

    These two website of mine might give you example:
    https://www.imcv.com.au
    https://www.miisonline.org

    mstegink

    (@mstegink)

    The essence is to use a page for the welcome message, post for news and weblog and then separate weblog and news by in- and excluding categories. Some attention for the search is needed.

    >> News section, they are actually posts with category news (which is 1 in this case), number of items is set by posts_per_page variable

    query_posts(‘category=1&posts_per_page=2’);
    if (have_posts()): while(have_posts()) : the_post()
    the_content()
    endwhile; endif;

    >> Welcome section, this is a page with title welcome

    query_posts(‘pagename=welcome’);
    if (have_posts()): while(have_posts()) : the_post()
    the_content()
    endwhile; endif;

    >> Product section, don’t know the plugin syntax but probably you do

    >> Blog section, they are actually posts with various categories but not news (which is 1 in this case), number of items is set in admin panel > options > reading

    query_posts(‘category=-1’);
    if (have_posts()): while(have_posts()) : the_post()
    the_content()
    endwhile; endif;

    I left out all information about heading, footer, xhtml structure for markup etc. You could do anything you want using CSS.

    mstegink

    (@mstegink)

    Correction: to make the blog section work you need to follow these guidelines (from https://codex.www.ads-software.com/Pages >> Making your blog appear in a non-root folder).

    1. Create a blog template. The easiest way to do this is to create a file named blog.php with the following contents in your theme directory:

    ?php
    /*
    Template Name: Blog
    */

    query_posts(‘cat=-0’); //gets all posts
    load_template( TEMPLATEPATH . ‘/index.php’); //loads index
    ?

    Log into WordPress and create a page named “Blog” (or any name you want your blog to have) with template “blog”.

    See https://cms.bos89.nl for an example.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Front page as CMS’ is closed to new replies.