Forums

How to seperate written info on page (8 posts)

  1. be20pilot
    Member
    Posted 2 years ago #

    I am new to WordPress and blogging for that matter.

    I have created a blog that is used for discussion about current events as well as information for knowledge that is found on the page.

    My question is; how do I seperate each item I write about regarding a certain subject. ie. today I may write an article on cats, then tomorrow I may write an article on dogs. I would like for each article to be displayed by date and able to comment if you wish.

  2. Samuel B
    moderator
    Posted 2 years ago #

    create categories
    i.e. "Dogs" and "Cats"
    when you make a post - assign the post to that category

    also, you will want custom permalinks for date and post name
    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    you likely want "date & name based"

  3. be20pilot
    Member
    Posted 2 years ago #

    Thanks samboll, I know it would work for posts, but how about on pages..

    Take a look at this blog, by Anderson Cooper or CNN http://ac360.blogs.cnn.com/

    On the main page (that I assume is a page and not a post page) has each item seperated by a gray line and each item has a date as to when it was posted. In addition he has a "keep reading" field at the end of each article.

    The "insert more tag" does not appear to be working. How can I solve that also please. Thanks

    Kevan

  4. Samuel B
    moderator
    Posted 2 years ago #

    those are posts not pages
    many themes are set up to show the date and author info, etc.
    there are 100's of free magazine themes to look similar

    as for the excerpt - are you inserting the
    <!--more-->
    tag where you want the "continue reading" to be?
    more info
    http://codex.wordpress.org/Customizing_the_Read_More

    magazine themes
    http://www.wpzoom.com/wordpress-themes-sets/45-free-premium-wordpress-themes-with-magazine-or-grid-layouts/

  5. be20pilot
    Member
    Posted 2 years ago #

    So my next question then would be:

    Can I more than one page dedicated to posts, because if the "Main" page on Anderson Cooper's blog are posts and the middle column titled "Blog" are post also then he has two pages as post?

  6. be20pilot
    Member
    Posted 2 years ago #

    So my next question then would be:

    Can I have more than one page dedicated to posts, because if the "Main" page on Anderson Cooper's blog are posts and the middle column titled "Blog" are post also, then he has two pages as post?

  7. Samuel B
    moderator
    Posted 2 years ago #

    If you get a theme with a home.php - it will have "featured content" for the home or front page. Usually you assign a certain category/categories and a certain number of posts to display on front page
    Then you will also have a blog page where you have more posts

  8. be20pilot
    Member
    Posted 2 years ago #

    Thanks for your help samboll......I've given my problem some more thought and have come up with a solution to my nagging problem.

    I've decided to create child pages of the parent page, but now the child page is also showing up on the top main menu bar. I do not mind it's being shown underneath the parent page on the sidebar but I would like to know how to remove it from the main menu.

    By the way I am using the "Vistalicious Theme"...Here is my header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if (is_home () ) { bloginfo(�name�); }
    elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo(�name�); }
    elseif (is_single() ) { single_post_title();}
    elseif (is_page() ) { single_post_title();}
    else { wp_title(��,true); } ?></title>
    <meta name="robots" content="index,follow" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>

    <body>
    <div id="wrapper">

    <div id="header">
    <div class="topright"><!-- Edit welcome message here -->Always be ready to make your defense to anyone who demands from you an accounting for the hope that is in you 1 Peter 3:15

    </div>
    <h1 class="sitename">"><?php bloginfo('name'); ?></h1>
    <h2 class="sitedesc"><?php bloginfo('description'); ?></h2>
    </div> <!-- Closes Header -->

    <div id="nav">

    <div class="search"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div> <!-- Closes Search -->

    <?php function get_the_pa_ges() {
    global $wpdb;
    if ( ! $these_pages = wp_cache_get('these_pages', 'pages') ) {
    $these_pages = $wpdb->get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and post_type = "page" order by ID');

    }
    return $these_pages;
    }

    function list_all_pages(){

    $all_pages = get_the_pa_ges ();
    foreach ($all_pages as $thats_all){
    $the_page_id = $thats_all->ID;

    if (is_page($the_page_id)) {
    $addclass = ' class="current_page"';
    } else {
    $addclass = '';
    }
    $output .= '<li' . $addclass . '>ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span>';
    }

    return $output;
    }
    ?>

      <?php

      if (is_home()) {
      $addclass = ' class="current_page"';
      } else {
      $addclass = '';
      }
      echo "<li" . $addclass . "><span>Home</span>";
      echo list_all_pages();?>

    <div class="cleared"></div>
    </div> <!-- Closes Nav -->

    <div class="topcurvewhite"></div>
    <div id="main">

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags