Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Fixing WordPress
    In reply to: Security Error
    Thread Starter pptouring

    (@pptouring)

    Sure but they’ve been there for a couple years now and this just started. I did just recently change themes, but I doubt this had any impact on my root files. For troubleshooting, I went ahead and added the above code in my .htaccess file and was able to update the status of a comment, but then I commented it out until I do some more research to make sure I am not setting myself up for a security breach. If anyone has any thoughts about modifying the .htaccess file, I’d like to hear them.

    thank you

    Thread Starter pptouring

    (@pptouring)

    Ok I’ve been poking around with the functions.php and made the following changes.

    /** This is where you can change to format to accept dates **/
    function pinboard_excerpt_permalink( $excerpt ) {
    if( pinboard_is_teaser() && ( ! has_post_format( ‘aside’ ) || ! has_post_format( ‘status’ ) || ! has_post_format (‘gallery’) || ! has_post_format(‘image’) || ! has_post_format(‘link’) || ! has_post_format(‘quote’) || ! has_post_format(‘video’) || ! has_post_format(‘audio’)) )
    $excerpt = str_replace( ‘</p>’, ‘ → ‘ . get_the_time( get_option( ‘date_format’ ) ) . ‘</p>’, $excerpt );
    return $excerpt;
    }
    endif;

    I’m not sure if this is the best way to add the date to each “teaser” or excerpt, but it seems to work.

    Any suggestions to make this better?

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