[Plugin: List category posts] Can Date instead of Title link to Post?
-
I have an existing site and the format of the post-list is
Date(linked to post) Title(not linked)I’ve already made a custom template to show date first, but I can’t figure out how to make the Date a link to the post.
My custom template is below
<?php $lcp_display_output = ''; //Add 'starting' tag. Here, I'm using an unordered list (ul) as an example: $lcp_display_output .= '<table border="0" width="680" cellpadding="3" cellspacing="3">'; /** * Posts loop. */ foreach ($this->catlist->get_categories_posts() as $single): //Start a List Item for each post: $lcp_display_output .= "<tr>"; //Show date: $lcp_display_output .= '<td>' . $this->get_date($single) . '</td>'; //Show the title and link to the post: $lcp_display_output .= '<td>' . $this->get_post_title($single) . '</td>'; //Close li tag $lcp_display_output .= '</tr>'; endforeach; $lcp_display_output .= '</table>'; $this->lcp_output = $lcp_display_output;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: List category posts] Can Date instead of Title link to Post?’ is closed to new replies.