Forum Replies Created

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

    (@ccluser)

    bump

    Thread Starter ccluser

    (@ccluser)

    bump, need help!

    Thread Starter ccluser

    (@ccluser)

    I’ve found another php file that has more on categories, maybe it’s something from here but I don’t understand any of it.

    Can anyone help?

    # Displays a list of categories
    function dp_list_categories($num=0, $exclude='') {
    	if (strlen($exclude)>0) $exclude = '&exclude=' . $exclude;
    	$categories = get_categories('hide_empty=1'.$exclude);
    	$first = true; $count = 0;
    	foreach ($categories as $category) {
    		if ($num>0) { $count++; if ($count>$num) break; } // limit
    		if ($category->parent<1) {
    			if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; }
    			?><li<?php echo $f; ?>>
    			<a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->name ?><?php echo $raquo; ?></a></li>
    			<?php
    		}
    	}
    }
    Thread Starter ccluser

    (@ccluser)

    Ty for both of your responses.

    I have actually done exactly what both of you suggested, in the same order lol.

    I first took out the 300, that did show the full post but there were no paragraphs, no line breaks, no formatting whatsoever, and that just wont do, at least for me.

    So then I did <p><?php the_content(); ?></p> instead.

    And it did work, I’m satisfied with it…however, I did not know that it produced duplicate content…

    So my question now is, is it possible to make an excerpt type thing on the front page, but WITH the text formatted, with line breaks, paragraphs, bold, italic, etc…

    Anyone know how to do that?

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