Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • There is a plugin called Latest Post By Category that does something similar to this

    if (is_category()) {
    	$this_category = get_category($cat);
    }
    if ($this_category->category_parent) {
    	$child_categories = get_categories('child_of=' . $this_category->cat_id);
    
    	foreach ($child_categories as $child_category) {
    		$my_posts = get_posts('orderby=menu_order&order=ASC&cat=' . $child_category->cat_id);
    		foreach ($my_posts as $post) : the_post()
    		?>
    
                    <div class="post">
    		<?php the_title(); ?>
    		</div>
    
    			<?php endforeach; ?>
    			<?php } ?>
    
    		<?php }		?>

    That code doesn’t quite work…but maybe it’s on the right track? Any ideas?

    Thanks!

    hopefully, you already found this thread describing how to fix this bug:

    https://www.ads-software.com/support/topic/218542

    In the PHP code for adding the caption div, there is an extra 10px that is added to the width of the image. All you have to do is go to the media.php file located in the wp-includes folder and change this value. In WP version 2.8.2, it is on line 596:

    style=”width: ‘ . (10 + (int) $width) . ‘px”

    change the 10 to 0.

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