Title: eassae's Replies | WordPress.org

---

# eassae

  [  ](https://wordpress.org/support/users/eassae/)

 *   [Profile](https://wordpress.org/support/users/eassae/)
 *   [Topics Started](https://wordpress.org/support/users/eassae/topics/)
 *   [Replies Created](https://wordpress.org/support/users/eassae/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/eassae/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/eassae/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/eassae/engagements/)
 *   [Favorites](https://wordpress.org/support/users/eassae/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using the_excerpt as meta](https://wordpress.org/support/topic/using-the_excerpt-as-meta/)
 *  Thread Starter [eassae](https://wordpress.org/support/users/eassae/)
 * (@eassae)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/using-the_excerpt-as-meta/#post-2138903)
 * Final:
 *     ```
       <?php
       function og_meta_desc() {
       	global $post;
       	$meta = strip_tags($post->post_content);
       	$meta = strip_shortcodes($meta);
       	$meta = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), ' ', $meta);
       	$meta = substr($meta, 0, 200);
       	if ( $meta != '' ) {
       		echo "<meta property=\"og:description\" content=\"$meta...\" />";
       	} else {
       		echo "<meta property=\"og:description\" content=\"Here is some cool new content.  Check it out.\" />";
       	}
       }
       og_meta_desc();
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using the_excerpt as meta](https://wordpress.org/support/topic/using-the_excerpt-as-meta/)
 *  Thread Starter [eassae](https://wordpress.org/support/users/eassae/)
 * (@eassae)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/using-the_excerpt-as-meta/#post-2138901)
 * Solved:
 *     ```
       <?php
       function og_meta_desc() {
       	global $post;
       	$meta = strip_tags($post->post_content);
       	$meta = str_replace(array("\n", "\r", "\t"), ' ', $meta);
       	$meta = substr($meta, 0, 200);
       	if ( $meta != '' ) {
       		echo "<meta property=\"og:description\" content=\"$meta...\" />";
       	} else {
       		echo "<meta property=\"og:description\" content=\"$Here is some cool new content.  Check it out.\" />";
       	}
       }
       og_meta_desc();
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Gallery writing two](https://wordpress.org/support/topic/gallery-writing-two/)
 *  Thread Starter [eassae](https://wordpress.org/support/users/eassae/)
 * (@eassae)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/gallery-writing-two/#post-1842093)
 * The problem seems to be in the media.php line 861
 *     ```
       if ( $columns > 0 && ++$i % $columns == 0 )
       			$output .= '<br style="clear: both" />';
       ```
   
 * If I delete <br style=”clear: both” /> in line 861 everything works fine.
 * I am by no means a php expert so I don’t really know what I am doing by removing
   this part of the code.
 * So if someone could give me an explanation on why this might be necessary it 
   would be greatly appreciated.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Adding special characters between menu items using WP_LIST_PAGES](https://wordpress.org/support/topic/adding-special-characters-between-menu-items-using-wp_list_pages/)
 *  [eassae](https://wordpress.org/support/users/eassae/)
 * (@eassae)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/adding-special-characters-between-menu-items-using-wp_list_pages/#post-990871)
 * Hello Capn Code.
 * I am using your script and it works great. I am just having one problem. My last
   menu item does not get assigned the class of page-active when pressed.
 * If you could offer any solutions that would be great.

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