Title: dschnare's Replies | WordPress.org

---

# dschnare

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Read more is not working](https://wordpress.org/support/topic/read-more-is-not-working/)
 *  [dschnare](https://wordpress.org/support/users/dschnare/)
 * (@dschnare)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/read-more-is-not-working/#post-1639664)
 * I seem to have fixed the problem by doing the following:
 *     ```
       global $more;
       $more = 0;
       the_content( "Continue reading ..." );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Read more is not working](https://wordpress.org/support/topic/read-more-is-not-working/)
 *  [dschnare](https://wordpress.org/support/users/dschnare/)
 * (@dschnare)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/read-more-is-not-working/#post-1639663)
 * I’m having the same or similar problem, although in my case I do have correct
   syntax. The code:
 *     ```
       $events = get_posts( "posts_per_page=2&orderby=date&order=DESC&post_type=post&category_name=" . $category_name);
       if ( count( $events ) != 0 )
       {
       	$post = $events[ 0 ];
       	setup_postdata( $post );
       	$category_link = get_category_link( get_cat_id( $category_name ) );
       	the_content( "Continue reading ..." );
       	?><a href="<?php echo $category_link; ?>" title="Link to <?php echo $category_name; ?>"><em><?php echo $category_caption; ?></em></a><?php
       }
       ```
   
 * When I call the_content() I expected the post content to be cut-off at the more
   section and have a “Continue reading …” link. However, I get the full post, like
   everything. Is there something I’m doing wrong?
    This code is written in a widget’s
   widget() function.

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