• Question 1. How do I turn comments off? I am mainly using wordpress as a CMS and I won’t have users commenting.

    Question 2. Page order. Is there any way to change the order of your pages after they are made or do you have to make the pages in the correct order to start with?

    Thanks for any help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • 1. Delete the comment bit in your templates (single, page, archive).

    2. Yes to the first bit. Go edit a page and look for the box that says “page order”. Expand it and you’ll see you can specify the order pages are listed in. You can also have parent/child relationships with pages, which is another way of ordering them

    And welcome!

    Thread Starter baxley

    (@baxley)

    Thanks a bunch, I`ll give that a try!

    Thread Starter baxley

    (@baxley)

    Ok here is the page template, which part would I take out?

    <?php get_header(); ?>

    <div id=”content_box”>

    <div id=”content” class=”pages”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h2><?php the_title(); ?></h2>
    <div class=”entry”>
    <?php the_content(‘<p>Read the rest of this page →</p>’); ?>
    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>
    </div>
    <?php if (‘open’ == $post-> comment_status) { ?>
    <p class=”tagged”>#comments”><?php comments_number(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></p>
    <div class=”clear”></div>
    <?php } else { ?>
    <div class=”clear rule”></div>
    <?php } ?>

    <?php endwhile; endif; ?>

    <?php if (‘open’ == $post-> comment_status) { comments_template(); } ?>

    </div>

    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>

    <?php if ('open' == $post-> comment_status) { ?>
    <p class="tagged">#comments"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></p>

    and

    <?php if ('open' == $post-> comment_status) { comments_template(); } ?>

    Thread Starter baxley

    (@baxley)

    Here is the page template with those parts taken out:

    <?php get_header(); ?>

    <div id=”content_box”>

    <div id=”content” class=”pages”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h2><?php the_title(); ?></h2>
    <div class=”entry”>
    <?php the_content(‘<p>Read the rest of this page →</p>’); ?>
    <?php link_pages(‘<p>Pages: ‘, ‘</p>’,

    ‘number’); ?>
    </div>

    <div class=”clear”></div>
    <?php } else { ?>
    <div class=”clear rule”></div>
    <?php } ?>

    <?php endwhile; endif; ?>

    </div>

    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>

    Now I am getting an error on my page.

    Parse error: parse error, unexpected ‘}’ in /home/richmo1/public_html/wp-content/themes/Cutline 1.1/page.php on line 18

    What am I messing up?

    I think the first bit that should have been removed is

    <?php if (‘open’ == $post-> comment_status) { ?>
    <p class=”tagged”>#comments”><?php comments_number(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></p>
    <div class=”clear”></div>
    <?php } else { ?>
    <div class=”clear rule”></div>
    <?php } ?>

    The other poster had you remove half of an if…else statement.

    But I’m a php illiterate so I hope you have a backup!

    Thread Starter baxley

    (@baxley)

    Yeah I saved the original, thanks I will try that!

    wowww I’m veryy veryy sorry man!!!!
    I need to sleep.
    I didn’t see the “else”

    really sorry. :/

    Thread Starter baxley

    (@baxley)

    Super cool, it was your 1st part and giovannimcosta’s 2nd part. Thanks a lot you 2!

    Great!

    Thread Starter baxley

    (@baxley)

    Ok now on to the page order.

    When I change the page order by expanding and chosing the order, the order does change in my admin panel, but not on the pages themselves.

    You need to modify wp_list_pages in your template:

    wp_list_pages(‘sort_column=menu_order’);

    That tells it to order the pages using the numerical values you’ve given them.

    See http://codex.wordpress.org/wp_list_pages for all the options you can use with wp_list_pages.

    The fold-page-list plugin is pretty cool if you have a lot of pages and want to have nested lists of links to them.

    Okay, I’m off to bed.

    Thread Starter baxley

    (@baxley)

    You are great thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘A few newbie questions…’ is closed to new replies.