Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m interested in finding this out too.

    Thread Starter rightmost

    (@rightmost)

    Hi vdowsett, I ended up modifying the wordchimp.php file to get this to work. This is what I did:

    On line 914, replaced:

    $sql = "SELECT post_author, display_name, post_date, post_content, post_title, post_excerpt, post_name FROM {$wpdb->prefix}posts LEFT JOIN {$wpdb->prefix}users ON {$wpdb->prefix}posts.post_author = {$wpdb->prefix}users.ID WHERE {$wpdb->prefix}posts.id = {$_POST['post_id']}";

    with:

    $sql = "SELECT post_author, display_name, post_date, post_content, guid, post_title, post_excerpt, post_name FROM {$wpdb->prefix}posts LEFT JOIN {$wpdb->prefix}users ON {$wpdb->prefix}posts.post_author = {$wpdb->prefix}users.ID WHERE {$wpdb->prefix}posts.id = {$_POST['post_id']}";

    And to add in the title link, on line 918, replaced:

    $display = "<h4>{$post['post_title']}</h4>";

    with:

    $display = "<h4><a href='{$post['guid']}'>{$post['post_title']}</a></h4>";

    Thanks so much, I’ve spent all morning to try and get this to work. I’ll give it a go!

    katrinaglover

    (@katrinaglover)

    Thank you so much! This worked perfect for me today.

    Thanks rightmost, that’s fixed one of my problems!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordChimp] Add links to post excerpts’ is closed to new replies.