• 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>';
Viewing 1 replies (of 1 total)
  • Jonathan

    (@jonathanphf)

    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.