WordPress.org

Support

Support » How-To and Troubleshooting » adding the_content to plugin serial posts

adding the_content to plugin serial posts

  • serial posts uses an array to display post links in a list, and i’#ve modded it to show more stuff about the post:

    $serp_list_li[] = '<div class="serial-contain">
    
    <h5><a href="' . get_permalink($findpost->ID) . '" title="' . $findpost->post_title . '">' .  $findpost->post_title . '</a></h5>
    
    <div class="special-date"> ' . mysql2date('M jS, Y', $findpost->post_date) . ' at ' . mysql2date('g:ia', $findpost->post_date) . '</div>
    
    <div class="text-align">' . $findpost->post_content . '...</div>
    
    <a class="read-link" href="' . get_permalink($findpost->ID) . '">Read</a>

    but when i use the_content, it doesn’t display correctly, no line breaks, and doesn’t show cpations properly. Does anyone know how to get it to show properly?

  • The topic ‘adding the_content to plugin serial posts’ is closed to new replies.
Skip to toolbar