The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

List category posts
Can Date instead of Title link to Post? (2 posts)

  1. uptimejeff
    Posted 4 years ago #

    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

    $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>';
    $lcp_display_output .= '</table>';
    $this->lcp_output = $lcp_display_output;


  2. uptimejeff
    Posted 4 years ago #

    To clarify..

    I'm hoping to make the date a link and also make the Title not a link anymore.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • List category posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic