Title: Remove url link in future posts
Last modified: November 14, 2016

---

# Remove url link in future posts

 *  [danilomesquita](https://wordpress.org/support/users/danilomesquita/)
 * (@danilomesquita)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-url-link-in-future-posts/)
 * Hi, as a suggestion, remove links when a post is the type a future.
    This help
   authors to show only a excerpt, creating a suspense in the future post…
 * I include this code on line 170 in functions.php…
 *     ```
       if ($args['post_status'] == "future")
       $html .= '<h3 class="rpwe-title">' . esc_attr( get_the_title() ) . '</h3>';
   
       else
       $html .= '<h3 class="rpwe-title"><a href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'recent-posts-widget-extended' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark">' . esc_attr( get_the_title() ) . '</a></h3>';
       ```
   
    -  This topic was modified 9 years, 8 months ago by [danilomesquita](https://wordpress.org/support/users/danilomesquita/).
    -  This topic was modified 9 years, 8 months ago by [danilomesquita](https://wordpress.org/support/users/danilomesquita/).

Viewing 1 replies (of 1 total)

 *  [Jonathan](https://wordpress.org/support/users/jonathanphf/)
 * (@jonathanphf)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-url-link-in-future-posts/#post-8851648)
 * Really nice. For a different reason I’d done a css version of removing links 
   for a single post on one page (I added another link to direct to a page where
   the post is embedded). The css:
 * `a[rel=”bookmark”] {
    text-decoration: none !important; box-shadow: 0 0 0 0 currentColor;
   pointer-events: none; cursor: default; color: #000000; }
 * The box-shadow was needed in order to over-ride an inherited style.

Viewing 1 replies (of 1 total)

The topic ‘Remove url link in future posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-posts-widget-extended_3384ca.
   svg)
 * [Recent Posts Widget Extended](https://wordpress.org/plugins/recent-posts-widget-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jonathan](https://wordpress.org/support/users/jonathanphf/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/remove-url-link-in-future-posts/#post-8851648)
 * Status: not a support question