Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • The if-code from above, I replace with this if-statement:

    if (strlen(trim(category_description())) > 0 && trim(category_description()) != "<br />")
    ...

    Notice the html-br. In my instalation, when my category descriptions are empty, they output a string including a html-br, so I make sure to avoid the br

    There is a built in function for this if you prefer, but first get the id of the page you want to exclude.

    go to Manage->[select post to exclude]. You will end up at the “Write Page” section where you can edit the page. Look at the url field of your browser, should look like this:

    myblogexample.com/wp-admin/page.php?action=edit&post=134

    The number at the end is the id of the page you want to exclude, 134 in this case.

    Now go to Design->Widgets. To the sidebar, you have added the Pages-widget. Press edit on that widget. Under the field Exclude, put the page id from from the step above (134 in my example)

    press change, save changes.

    clicksharpmarketing, I have the same situation. Go into the directory of you theme, open archive.php and look for a line like the following:

    <h3 class=”pagetitle”>Archives for the ‘<?php echo single_cat_title(); ?>’ Category</h3>

    Below this line, you can put the code discussed above, and your category descriptions will show up below the text “Archives for the ‘mycategory’ Category”

Viewing 3 replies - 1 through 3 (of 3 total)